Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54429 - sandbox/monotonic/libs/monotonic/test/clones
From: christian.schladetsch_at_[hidden]
Date: 2009-06-28 01:38:32


Author: cschladetsch
Date: 2009-06-28 01:38:31 EDT (Sun, 28 Jun 2009)
New Revision: 54429
URL: http://svn.boost.org/trac/boost/changeset/54429

Log:
added derived2

Text files modified:
   sandbox/monotonic/libs/monotonic/test/clones/main.cpp | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: sandbox/monotonic/libs/monotonic/test/clones/main.cpp
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/clones/main.cpp (original)
+++ sandbox/monotonic/libs/monotonic/test/clones/main.cpp 2009-06-28 01:38:31 EDT (Sun, 28 Jun 2009)
@@ -94,10 +94,11 @@
                 BOOST_ASSERT(bases.size() == 2);
                 vec copy = bases;
                 BOOST_ASSERT(copy.size() == 2);
- derived *p0 = dynamic_cast<derived *>(&copy[0]);
+ derived *p1 = dynamic_cast<derived *>(&copy[0]);
                 derived2 *p2 = dynamic_cast<derived2 *>(&copy[1]);
- BOOST_ASSERT(p0);
+ BOOST_ASSERT(p1);
                 BOOST_ASSERT(p2);
+ BOOST_ASSERT(p1->num == 42);
                 BOOST_ASSERT(p2->str == "foo");
 
         }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk