2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-20 16:52:15 +00:00
[SVN r16273]
This commit is contained in:
Dave Abrahams
2002-11-16 03:38:24 +00:00
parent 0adf4477a3
commit 7ea2447246

View File

@@ -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)