[C++-sig] copy_const_reference on add_property

Max Ivanov ivanov.maxim at gmail.com
Thu Aug 21 09:35:59 CEST 2008


> You should use boost::python::make_function
>
> namespace bp = boost::python;
>
> .add_property(
> "name"
>
>                        , bp::make_function(
> <ref to function>, <call  policies> ) );
>

Works great. Thank you.



More information about the Cplusplus-sig mailing list