I've been trying to track down a memory leak.  When I use the following:

 .def ("__iadd__", &hist_t::operator+=, bp::return_self<>())

I have a leak.

When changed to:

 .def (bp::self += hist_t::value_type())

there is no leak.  Any ideas?  I suppose I maybe should just start using the 
latter style and forget the former.


_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
https://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to