mirror of
https://github.com/boostorg/smart_ptr.git
synced 2026-07-09 18:01:08 +02:00
Removed casts as unsafe.
[SVN r13179]
This commit is contained in:
+1
-1
@@ -244,7 +244,7 @@ int test_main(int, char * [])
|
||||
test_is_nonzero(boost::make_shared(wp2));
|
||||
}
|
||||
|
||||
weak_ptr<Y> wp3 = shared_dynamic_cast<Y>(wp2);
|
||||
weak_ptr<Y> wp3 = shared_dynamic_cast<Y>(boost::make_shared(wp2));
|
||||
|
||||
BOOST_TEST(wp3.use_count() == 1);
|
||||
BOOST_TEST(wp3.get() != 0);
|
||||
|
||||
Reference in New Issue
Block a user