|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54491 - sandbox/monotonic/libs/monotonic/test/clones
From: christian.schladetsch_at_[hidden]
Date: 2009-06-28 19:34:45
Author: cschladetsch
Date: 2009-06-28 19:34:44 EDT (Sun, 28 Jun 2009)
New Revision: 54491
URL: http://svn.boost.org/trac/boost/changeset/54491
Log:
added comments
Text files modified:
sandbox/monotonic/libs/monotonic/test/clones/tests.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
Modified: sandbox/monotonic/libs/monotonic/test/clones/tests.cpp
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/clones/tests.cpp (original)
+++ sandbox/monotonic/libs/monotonic/test/clones/tests.cpp 2009-06-28 19:34:44 EDT (Sun, 28 Jun 2009)
@@ -123,8 +123,12 @@
void test_any()
{
- typedef std::vector<any<monotonic::allocator<char> >, monotonic::allocator<any<monotonic::allocator<char> > > > vec;
+ // this works, after changing boost::any<> to take an allocator type argument
+ typedef any<monotonic::allocator<char> > any_type;
+ typedef std::vector<any_type, monotonic::allocator<any_type> > vec;
vec v;
+
+ // an issue here is that instances are copy-constructed into the container
v.push_back(derived(42));
v.push_back(derived2("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