On Mar 19, 12:49 pm, "Jon Clements" <[EMAIL PROTECTED]> wrote:
> On 19 Mar, 16:40, "Shawn McGrath" <[EMAIL PROTECTED]> wrote:
>
> > On Mar 19, 12:00 pm, "Shawn McGrath" <[EMAIL PROTECTED]> wrote:
>
> > > I forgot to mention,
On Mar 19, 12:00 pm, "Shawn McGrath" <[EMAIL PROTECTED]> wrote:
> I forgot to mention, getname is defined as:
> const std::string &Entity::getName() const;
After more reading I found the copy_const_reference, and replaced:
boost::python::return_internal_reference&l
I forgot to mention, getname is defined as:
const std::string &Entity::getName() const;
--
http://mail.python.org/mailman/listinfo/python-list
Hi, I'm trying to expose a C++ class' internals to python via
boost::python. I can do integer/boolean functions fine, but as soon
as I do a string get/set it craps out.
boost::python::class_ >("Entity")
//publics
.def("isActive", &Entity::isActive) //bool