|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54269 - sandbox/monotonic/libs/monotonic/test/Tests
From: christian.schladetsch_at_[hidden]
Date: 2009-06-23 02:54:29
Author: cschladetsch
Date: 2009-06-23 02:54:29 EDT (Tue, 23 Jun 2009)
New Revision: 54269
URL: http://svn.boost.org/trac/boost/changeset/54269
Log:
fixed tests
Text files modified:
sandbox/monotonic/libs/monotonic/test/Tests/tests.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Modified: sandbox/monotonic/libs/monotonic/test/Tests/tests.cpp
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/Tests/tests.cpp (original)
+++ sandbox/monotonic/libs/monotonic/test/Tests/tests.cpp 2009-06-23 02:54:29 EDT (Tue, 23 Jun 2009)
@@ -1,12 +1,15 @@
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MAIN
+#include <string>
#include <boost/monotonic/monotonic.hpp>
//#include <boost/monotonic/shared_allocator.hpp>
#include <boost/monotonic/shared_storage.hpp>
#include <boost/monotonic/thread_local_storage.hpp>
#include <boost/monotonic/shared_allocator.hpp>
+#include <boost/monotonic/local.hpp>
+#include <boost/monotonic/allocator.hpp>
#define BOOST_TEST_MODULE basic_test test
#include <boost/test/unit_test.hpp>
@@ -33,9 +36,9 @@
fill_n(back_inserter(list0), 100, 42);
fill_n(back_inserter(list1), 100, 42);
- std::string<char, std::char_traits<char>, monotonic::allocator<char, region0> > string("foo");
- string += "bar";
- BOOST_ASSERT(string == "foobar");
+ std::basic_string<char, std::char_traits<char>, monotonic::allocator<char, region0> > str("foo");
+ str += "bar";
+ BOOST_ASSERT(str == "foobar");
}
}
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