Commit af202608 authored by Marcel Röthke's avatar Marcel Röthke

Fix compilation of the python binding

parent a685a67c
...@@ -99,7 +99,7 @@ void register_class(atom_value*, pybind11::module& m, ...@@ -99,7 +99,7 @@ void register_class(atom_value*, pybind11::module& m,
auto cmp = [](atom_value x, atom_value y) { auto cmp = [](atom_value x, atom_value y) {
return x == y; return x == y;
}; };
std::string (*to_string_fun)(const atom_value&) = &to_string; std::string (*to_string_fun)(atom_value) = &to_string;
pybind11::class_<atom_value>(m, name.c_str()) pybind11::class_<atom_value>(m, name.c_str())
.def("__str__", to_string_fun) .def("__str__", to_string_fun)
.def("__repr__", repr_fun) .def("__repr__", repr_fun)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment