Removed casts as unsafe.

[SVN r13179]
This commit is contained in:
Peter Dimov
2002-03-12 14:02:38 +00:00
parent c17f8c36c1
commit 72f83165e0
2 changed files with 1 additions and 45 deletions
+1 -1
View File
@@ -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);