Re: [C++-sig] copy constructors and multiple instances

2011-09-03 Thread Josh Stratton
Thanks for everyone's help. I'm posting my updated class that is now working. class Scene : public boost::enable_shared_from_this { public: void sendYourselfToPython() { try { object ignored = exec(EXAMPLE_PY_FUNCTION, pyMainNamespace); object processFileFunc = pyMainModule.at

[C++-sig] pickle the unpickleable

2011-09-03 Thread Neal Becker
I have a pickling problem I suspect is just not possible to solve. I have some wrappers around boost::random objects. There is a rng object, which is a single underlying mersenne twister. There are various distributions. For example, uniform_real. Each uniform_real holds a reference to the sin