Removed casts as unsafe.

[SVN r13179]
This commit is contained in:
Peter Dimov committed 2002-03-12 14:02:38 +00:00
1 parent c17f8c36c1
commit 72f83165e0
2 files changed
+1 -45

No files matched your search

+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);