diff options
Diffstat (limited to 'src/py_amount.cc')
-rw-r--r-- | src/py_amount.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/py_amount.cc b/src/py_amount.cc index 6f85f44d..536c4435 100644 --- a/src/py_amount.cc +++ b/src/py_amount.cc @@ -35,6 +35,7 @@ #include <boost/python/exception_translator.hpp> #include <boost/python/implicit.hpp> +#include <boost/python/args.hpp> namespace ledger { @@ -139,7 +140,7 @@ void export_amount() .def(init<long>()) .def(init<std::string>()) - .def("exact", &amount_t::exact, arg("value"), + .def("exact", &amount_t::exact, boost::python::arg("value"), "Construct an amount object whose display precision is always equal to its\n\ internal precision.") .staticmethod("exact") |