[C++-sig] boost::python and gcc 3.4
Nick Rasmussen
nick at ilm.com
Mon Apr 26 20:46:09 CEST 2004
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
More information about the Cplusplus-sig
mailing list