Brought back code which fixes get_deleter when it is called on a deleter

which has been wrapped inside a deleter_wrapper by "shared_from_raw() in 
constructors" support.


[SVN r57206]
This commit is contained in:
Frank Mori Hess
2009-10-28 22:42:21 +00:00
parent 32eb028e13
commit 2ee5eb70f3
3 changed files with 49 additions and 28 deletions

View File

@@ -93,8 +93,8 @@ int main()
px.reset();
BOOST_TEST( early_px.use_count() == 1 );
BOOST_TEST( X::instances == 1 );
// X::deleter_type *pd = boost::get_deleter<X::deleter_type>(early_px);
// BOOST_TEST(pd && *pd == &X::deleter2 );
X::deleter_type *pd = boost::get_deleter<X::deleter_type>(early_px);
BOOST_TEST(pd && *pd == &X::deleter2 );
}
BOOST_TEST( X::instances == 0 );