[C++-sig] boost::python and gcc 3.4

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Tue Apr 27 00:20:23 CEST 2004


Did you try this with the latest Boost CVS?
Unfortunately the "auto_ptr trouble"
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14528) was discovered and fixed
only after the Boost 1.31.0 release. I am not sure though if it is directly
related to your problem.
Ralf

--- Nick Rasmussen <nick at ilm.com> wrote:
> Now that gcc 3.4 is enforcing the standard more strictly, what's
> the new way of doing:
> 
>      handle<> main_module(borrowed( PyImport_AddModule("__main__") ));
> 
> (taken from the embedding section of the tutorial)
> 
> Without triggering a copy constructor call on a boost::noncopyable
> object.
> 
> Here's the relevant traffic from the gcc guys as to why the copy
> constructor's getting called:
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14618
> http://gcc.gnu.org/bugs.html#cxx_rvalbind
> 
> -nick



	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash




More information about the Cplusplus-sig mailing list