Boost logo

Boost Users :

From: Dan Fike (dan.fike_at_[hidden])
Date: 2008-04-22 14:59:23


"Dan Fike" <dan.fike_at_[hidden]> wrote...
> I've written the following code to expose this class to Python:
>
> BOOST_PYTHON_MODULE(myModule) {
> boost::python::class_<foo>("foo", boost::python::init<>())
> .def("isAligned", &bar.isAligned)
> ;
> }

I made a minor typo in the above code when preparing it for the mailing
list. It doesn't have any bearing on the rest of the thread.

The 3rd line should read as follows:

        .def ("isAligned", &foo::isAligned)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net