Skip to content

Commit 7ea2447

Browse files
committed
Bug fix
[SVN r16273]
1 parent 0adf447 commit 7ea2447

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/auto_ptr.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ std::auto_ptr<X> make()
4242
std::auto_ptr<X> callback(object f)
4343
{
4444
std::auto_ptr<X> x(new X(77));
45-
// call<void>(f.ptr(),x);
46-
// return std::auto_ptr<X>(new X(77));
4745
return call<std::auto_ptr<X> >(f.ptr(), x);
4846
}
4947

5048
std::auto_ptr<X> extract_(object o)
5149
{
52-
return extract<std::auto_ptr<X> >(o);
50+
return extract<std::auto_ptr<X>&>(o);
5351
}
5452

5553
BOOST_PYTHON_MODULE(auto_ptr_ext)

0 commit comments

Comments
 (0)