$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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)