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
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@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
I'm up to date with the latest CVS, and it seems like the same problem is showing up in the nightly build of the head: http://boost.sourceforge.net/regression-logs/cs-Linux/output/bin-boost-libs-... -nick On Mon, 26 Apr 2004, Ralf W. Grosse-Kunstleve wrote:
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@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
_______________________________________________ C++-sig mailing list C++-sig@python.org http://mail.python.org/mailman/listinfo/c++-sig
participants (2)
-
Nick Rasmussen -
Ralf W. Grosse-Kunstleve