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<>());
with:
 
boost::python::return_value_policy<boost::python::copy_const_reference>());

and it fixed my problem.  Is there any downside to using
copy_const_reference over return_internal_reference?

Thanks,
Shawn.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to