Re: [C++-sig] Beginner - Using Wrapped C++ in Python code (Taylor Centers)

2015-12-30 Thread Tony Cappellini
> >1. Beginner - Using Wrapped C++ in Python code (Taylor Centers) > > > -- > > BOOST_PYTHON_MODULE(MyMath) { > > using namespace boost::python; > > class_("MyMath", no_init) > > .def("__init__", &__init__) > > .def("MyAdd", &M

[C++-sig] Beginner - Using Wrapped C++ in Python code

2015-12-29 Thread Taylor Centers
I've got my C++ program wrapped (I think), by including boost::python libraries and doing this code at the bottom of the file. BOOST_PYTHON_MODULE(MyMath) { > using namespace boost::python; > class_("MyMath", no_init) > .def("__init__", &__init__) > .def("MyAdd", &MyAdd) > .def("MySubtract", &MyS