mirror of
https://github.com/boostorg/python.git
synced 2026-01-20 16:52:15 +00:00
Bug fix
[SVN r16273]
This commit is contained in:
@@ -42,14 +42,12 @@ std::auto_ptr<X> make()
|
||||
std::auto_ptr<X> callback(object f)
|
||||
{
|
||||
std::auto_ptr<X> x(new X(77));
|
||||
// call<void>(f.ptr(),x);
|
||||
// return std::auto_ptr<X>(new X(77));
|
||||
return call<std::auto_ptr<X> >(f.ptr(), x);
|
||||
}
|
||||
|
||||
std::auto_ptr<X> extract_(object o)
|
||||
{
|
||||
return extract<std::auto_ptr<X> >(o);
|
||||
return extract<std::auto_ptr<X>&>(o);
|
||||
}
|
||||
|
||||
BOOST_PYTHON_MODULE(auto_ptr_ext)
|
||||
|
||||
Reference in New Issue
Block a user