_internal_accept_owner now checks if _owned isn't already true.

[SVN r43856]
This commit is contained in:
Peter Dimov
2008-03-25 15:46:40 +00:00
parent af7d4fabad
commit dc6a8f0696
2 changed files with 24 additions and 4 deletions
+12
View File
@@ -162,11 +162,23 @@ void test3()
BOOST_TEST( pv.get() == p );
}
struct null_deleter
{
void operator()( void const* ) const {}
};
void test4()
{
boost::shared_ptr<V> pv( new V );
boost::shared_ptr<V> pv2( pv.get(), null_deleter() );
}
int main()
{
test();
test2();
test3();
test4();
return boost::report_errors();
}