Add add_ref parameter to intrusive_ptr::reset, add tests for reset.

This commit is contained in:
Peter Dimov committed 2013-12-26 18:47:05 +02:00
1 parent 4e46cb0609
commit 4de3f36839
3 files changed
+221 -10

No files matched your search

@@ -146,6 +146,11 @@ public:
this_type( rhs ).swap( *this );
}
void reset( T * rhs, bool add_ref )
{
this_type( rhs, add_ref ).swap( *this );
}
T * get() const BOOST_NOEXCEPT
{
return px;