Boost logo

Boost-Commit :

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


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

Log:
changed comments

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 03:06:06 EDT (Sun, 28 Jun 2009)
@@ -12,6 +12,7 @@
 
 #include <string>
 #include <boost/heterogenous/vector.hpp>
+#include <boost/monotonic/allocator.hpp>
 
 using namespace std;
 using namespace boost;
@@ -62,7 +63,7 @@
 
                 derived &p1 = copy.ref_at<derived>(0);
                 derived2 *p2 = copy.ptr_at<derived2>(1);
- derived3 *p3 = copy.ptr_at<derived3>(1);
+ derived3 *p3 = copy.ptr_at<derived3>(2);
                 
                 BOOST_ASSERT(p2);
                 BOOST_ASSERT(p3);
@@ -76,7 +77,7 @@
                 bool caught = false;
                 try
                 {
- derived3 &pp = copy.ref_at<derived2>(0);
+ cloneable::common_base &base = copy.ref_at<derived2>(0);
                 }
                 catch (std::bad_cast)
                 {


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