Re: [C++-sig] boost python and boost/thread.hpp

2012-02-12 Thread Jim Bosch
On 02/12/2012 01:34 PM, Guillaume Carbonneau wrote: Hi, I'm having compilation errors as soon as I give my classes member variables that come from the boost thread library. Wrapping those in shared_ptr seems to work. Any idea why? Is there a special wrapping directive I should give it to? Th

Re: [C++-sig] boost python and boost/thread.hpp

2012-02-12 Thread Stefan Seefeld
On 02/12/2012 01:34 PM, Guillaume Carbonneau wrote: > Hi, > > I'm having compilation errors as soon as I give my classes member > variables that come from the boost thread library. > Wrapping those in shared_ptr seems to work. By default, boost.python treats objects as copyable. That doesn't work

[C++-sig] boost python and boost/thread.hpp

2012-02-12 Thread Guillaume Carbonneau
Hi, I'm having compilation errors as soon as I give my classes member variables that come from the boost thread library. Wrapping those in shared_ptr seems to work. Any idea why? Is there a special wrapping directive I should give it to? #include #include #include struct Hello { Hello(){}