$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r54551 - sandbox/cloneable/libs/cloneable/test
From: christian.schladetsch_at_[hidden]
Date: 2009-06-30 19:17:32
Author: cschladetsch
Date: 2009-06-30 19:17:32 EDT (Tue, 30 Jun 2009)
New Revision: 54551
URL: http://svn.boost.org/trac/boost/changeset/54551
Log:
updated comments
Text files modified: 
   sandbox/cloneable/libs/cloneable/test/tests.cpp |     6 +++++-                                  
   1 files changed, 5 insertions(+), 1 deletions(-)
Modified: sandbox/cloneable/libs/cloneable/test/tests.cpp
==============================================================================
--- sandbox/cloneable/libs/cloneable/test/tests.cpp	(original)
+++ sandbox/cloneable/libs/cloneable/test/tests.cpp	2009-06-30 19:17:32 EDT (Tue, 30 Jun 2009)
@@ -171,13 +171,17 @@
 {
         using namespace no_default_ctor_test;
         T0 *p = new T0(10);
+
+	// ensure we can clone, even without a default ctor
         T0 *q = p->clone_as<T0>();
         BOOST_ASSERT(q && typeid(*q) == typeid(T0));
+
+	// ensure we fail to make a default-constructed new object
         delete q;
         bool caught = false;
         try
         {
-		T0 *r = dynamic_cast<T0 *>(p->create());
+		default_base_type *r = p->create();
         }
         catch (no_default_construction)
         {