[C++-sig] Re: Boost.Python << & >> bug

David Abrahams dave at boost-consulting.com
Mon Aug 4 03:22:57 CEST 2003


"Niall Douglas" <s_sourceforge at nedprod.com> writes:

> 	// Comment out this for bug no. 2
>     scope* FX_FXId_scope = new scope(
>     class_< FX::FXId >("FXId", no_init)
>         .def( other< FX::FXStream >() << self )
>         .def( other< FX::FXStream >() >> self )
>     );

Niall,

Why are you dynamically allocating (and leaking) scope objects?

That's very bad juju (but probably has nothing to do with your other
problems).

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list