mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-31 21:24:40 +02:00
Fixed bogus test failure caused by new enable_shared_from_this features.
[SVN r43782]
This commit is contained in:
@@ -133,7 +133,8 @@ void test3()
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
boost::shared_ptr<V> r = v2.shared_from_this();
|
boost::shared_ptr<V> r = v2.shared_from_this();
|
||||||
BOOST_ERROR("v2.shared_from_this() failed to throw");
|
BOOST_TEST( p < r || r < p );
|
||||||
|
BOOST_TEST( r.get() == &v2 );
|
||||||
}
|
}
|
||||||
catch(boost::bad_weak_ptr const &)
|
catch(boost::bad_weak_ptr const &)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user