We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0adf447 commit 7ea2447Copy full SHA for 7ea2447
test/auto_ptr.cpp
@@ -42,14 +42,12 @@ std::auto_ptr<X> make()
42
std::auto_ptr<X> callback(object f)
43
{
44
std::auto_ptr<X> x(new X(77));
45
-// call<void>(f.ptr(),x);
46
-// return std::auto_ptr<X>(new X(77));
47
return call<std::auto_ptr<X> >(f.ptr(), x);
48
}
49
50
std::auto_ptr<X> extract_(object o)
51
52
- return extract<std::auto_ptr<X> >(o);
+ return extract<std::auto_ptr<X>&>(o);
53
54
55
BOOST_PYTHON_MODULE(auto_ptr_ext)
0 commit comments