25 Sep
2009
25 Sep
'09
11:36 p.m.
Hello. The question is simple, but reading the documentation I cannot understand how to do this: class MyClass : boost::noncopyable { void f(MyClass2 * c2); }; MyClass2 is not copyable either. So I want to be able to wrap that function, but avoid the copying of MyClass2 when called from python. I want to pass the c++ object directly, not a copy of it. I'm not sure if this can be done with ptr() or some kind of call policy, but I don't understand the documentation 100%. Any help will be appreciated. Thanks.