forked from boostorg/smart_ptr
Removed casts as unsafe.
[SVN r13179]
This commit is contained in:
1 parent
c17f8c36c1
commit
72f83165e0
2 files changed
+1
-45
No files matched your search
+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