diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-07 10:25:25 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:39 -0400 |
commit | c211335760f2c5883aed34c31aeb6ce7e8e51bf9 (patch) | |
tree | a8b6f4fcfb971ef2eee06bce22e1aab25d9ad4ef /src/pyutils.h | |
parent | a07e20c14e5ba3597a855276ad9a195343aee42f (diff) | |
download | ledger-c211335760f2c5883aed34c31aeb6ce7e8e51bf9.tar.gz ledger-c211335760f2c5883aed34c31aeb6ce7e8e51bf9.tar.bz2 ledger-c211335760f2c5883aed34c31aeb6ce7e8e51bf9.zip |
Extended Python amount class.
Diffstat (limited to 'src/pyutils.h')
-rw-r--r-- | src/pyutils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pyutils.h b/src/pyutils.h index 84a0db7e..42d5f1e0 100644 --- a/src/pyutils.h +++ b/src/pyutils.h @@ -21,7 +21,7 @@ struct register_python_conversion }; template <typename T> -struct python_optional : public boost::noncopyable +struct register_optional_to_python : public boost::noncopyable { struct optional_to_python { @@ -67,7 +67,7 @@ struct python_optional : public boost::noncopyable } }; - explicit python_optional() { + explicit register_optional_to_python() { register_python_conversion<boost::optional<T>, optional_to_python, optional_from_python>(); } |