Fix smart_ptr tests to not require RTTI.

[SVN r58123]
This commit is contained in:
Peter Dimov
2009-12-03 18:10:37 +00:00
parent 3824a6b156
commit e78efdbb96
4 changed files with 32 additions and 0 deletions
+2
View File
@@ -63,10 +63,12 @@ void test()
px->f();
#if !defined( BOOST_NO_RTTI )
boost::shared_ptr<Y> py2 = boost::dynamic_pointer_cast<Y>(px);
BOOST_TEST(py.get() == py2.get());
BOOST_TEST(!(py < py2 || py2 < py));
BOOST_TEST(py.use_count() == 3);
#endif
}
catch( boost::bad_weak_ptr const& )
{