MCPcopy Create free account
hub / github.com/TNG/boost-python-examples / BOOST_PYTHON_MODULE

Function BOOST_PYTHON_MODULE

07-Operators/operators.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38
39BOOST_PYTHON_MODULE(operators)
40{
41 class_<NumberLike>("NumberLike")
42 .def(init< optional<int> >())
43 .def(self + int())
44 .def("__str__", &NumberLike::str)
45 .def("__repr__", &NumberLike::repr)
46 ;
47}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected