summaryrefslogtreecommitdiff
path: root/src/pyutils.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-07 10:25:25 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:39 -0400
commitc211335760f2c5883aed34c31aeb6ce7e8e51bf9 (patch)
treea8b6f4fcfb971ef2eee06bce22e1aab25d9ad4ef /src/pyutils.h
parenta07e20c14e5ba3597a855276ad9a195343aee42f (diff)
downloadledger-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.h4
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>();
}