diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-04-13 00:57:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-13 00:57:10 +0200 |
commit | d8fefe9e82f99d4dab477a66c83cad64a8159c33 (patch) | |
tree | 27d1a5e41abca837b72cfcc81b0b5c365f7debe7 /src/pyutils.h | |
parent | 0c57796f86aeec45e106189aacfd50e1791d5605 (diff) | |
parent | 9244a27f9548a1d39fb01348fde66ff81f5150a4 (diff) | |
download | fork-ledger-d8fefe9e82f99d4dab477a66c83cad64a8159c33.tar.gz fork-ledger-d8fefe9e82f99d4dab477a66c83cad64a8159c33.tar.bz2 fork-ledger-d8fefe9e82f99d4dab477a66c83cad64a8159c33.zip |
Merge pull request #2233 from afh/clean-up-class-list
Clean up class list
Diffstat (limited to 'src/pyutils.h')
-rw-r--r-- | src/pyutils.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pyutils.h b/src/pyutils.h index aa9c4451..c02be37b 100644 --- a/src/pyutils.h +++ b/src/pyutils.h @@ -39,6 +39,8 @@ */ #pragma once +namespace ledger { namespace python { + template <typename T, typename TfromPy> struct object_from_python { @@ -142,6 +144,8 @@ PyObject * str_to_py_unicode(const T& str) return object(handle<>(borrowed(uni))).ptr(); } +} } // namespace ledger::python + namespace boost { namespace python { // Use expr to create the PyObject corresponding to x @@ -178,7 +182,7 @@ namespace boost { namespace python { : handle<> \ { \ arg_to_python(T const& x) \ - : python::handle<>(expr) {} \ + : boost::python::handle<>(expr) {} \ }; \ } |