diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-07 02:53:10 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-07 02:53:35 -0400 |
commit | 0eda1ad2c6db874a6fed9c45851d4222250a2255 (patch) | |
tree | b9e784574e417bd2f5d52b0c3895589d012149f7 /python/pyutils.h | |
parent | 6ddc21dc5fe75c80df1bf383e5bfc2320deb8624 (diff) | |
download | ledger-0eda1ad2c6db874a6fed9c45851d4222250a2255.tar.gz ledger-0eda1ad2c6db874a6fed9c45851d4222250a2255.tar.bz2 ledger-0eda1ad2c6db874a6fed9c45851d4222250a2255.zip |
The Python interface layer is building again.
Diffstat (limited to 'python/pyutils.h')
-rw-r--r-- | python/pyutils.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/python/pyutils.h b/python/pyutils.h index bdb1f142..006f75ac 100644 --- a/python/pyutils.h +++ b/python/pyutils.h @@ -90,12 +90,13 @@ struct register_optional_to_python : public boost::noncopyable { using namespace boost::python::converter; - void * const storage = ((rvalue_from_python_storage<T> *) data)->storage.bytes; + void * const storage = + reinterpret_cast<rvalue_from_python_storage<T> *>(data)->storage.bytes; if (data->convertible == source) // == None new (storage) boost::optional<T>(); // A Boost uninitialized value else - new (storage) boost::optional<T>(*static_cast<T *>(data->convertible)); + new (storage) boost::optional<T>(*reinterpret_cast<T *>(data->convertible)); data->convertible = storage; } @@ -103,7 +104,7 @@ struct register_optional_to_python : public boost::noncopyable explicit register_optional_to_python() { register_python_conversion<boost::optional<T>, - optional_to_python, optional_from_python>(); + optional_to_python, optional_from_python>(); } }; |