|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68016 - in sandbox/statistics/support/libs/assign/v2: example src test/detail test/put test/put/pipe/functor test/unit_testing
From: erwann.rogard_at_[hidden]
Date: 2011-01-11 19:30:18
Author: e_r
Date: 2011-01-11 19:30:14 EST (Tue, 11 Jan 2011)
New Revision: 68016
URL: http://svn.boost.org/trac/boost/changeset/68016
Log:
upd boost/assign/v2
Text files modified:
sandbox/statistics/support/libs/assign/v2/example/put.cpp | 1 -
sandbox/statistics/support/libs/assign/v2/src/main.cpp | 2 +-
sandbox/statistics/support/libs/assign/v2/test/detail/traits.cpp | 2 +-
sandbox/statistics/support/libs/assign/v2/test/put/deque.cpp | 10 ----------
sandbox/statistics/support/libs/assign/v2/test/put/pipe/functor/container.cpp | 19 ++++++++++---------
sandbox/statistics/support/libs/assign/v2/test/unit_testing/misc.cpp | 4 ++--
6 files changed, 14 insertions(+), 24 deletions(-)
Modified: sandbox/statistics/support/libs/assign/v2/example/put.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/put.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/example/put.cpp 2011-01-11 19:30:14 EST (Tue, 11 Jan 2011)
@@ -8,7 +8,6 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
//////////////////////////////////////////////////////////////////////////////
#include <libs/assign/v2/example/put/deque.h>
-#include <libs/assign/v2/example/put/convert.h>
#include <libs/assign/v2/example/put/range.h>
#include <libs/assign/v2/example/put/pipe.h>
#include <libs/assign/v2/example/put.h>
Modified: sandbox/statistics/support/libs/assign/v2/src/main.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/src/main.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/src/main.cpp 2011-01-11 19:30:14 EST (Tue, 11 Jan 2011)
@@ -12,7 +12,7 @@
{
// Do not put libs/assign/v2/test/unit_testing in this project
-
+
{
using namespace test_assign_v2;
xxx_detail::test();
Modified: sandbox/statistics/support/libs/assign/v2/test/detail/traits.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/detail/traits.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/detail/traits.cpp 2011-01-11 19:30:14 EST (Tue, 11 Jan 2011)
@@ -10,7 +10,7 @@
#include <libs/assign/v2/test/detail/traits/has_push.h>
#include <libs/assign/v2/test/detail/traits/has_static_size.h>
#include <libs/assign/v2/test/detail/traits/has_value_type.h>
-#include <libs/assign/v2/test/type_traits.h>
+#include <libs/assign/v2/test/detail/traits.h>
namespace test_assign_v2{
namespace xxx_detail{
Modified: sandbox/statistics/support/libs/assign/v2/test/put/deque.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/deque.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/deque.cpp 2011-01-11 19:30:14 EST (Tue, 11 Jan 2011)
@@ -20,7 +20,6 @@
#include <boost/assign/v2/detail/keyword.hpp>
#include <boost/assign/v2/detail/checking/container.hpp>
#include <boost/assign/v2/detail/checking/constants.hpp>
-/*#include <boost/assign/v2/detail/checking/relational_op.hpp>*/
#include <boost/assign/v2/put/deque.hpp>
@@ -58,15 +57,6 @@
typedef std::string str_;
BOOST_ASSIGN_V2_CHECK( str_( csv_deque("x")[0] ) == "x");
}
-/*
- { // Relational
- using namespace checking::constants;
- using namespace checking::relational_op;
- do_check(
- csv_deque( a, b, c, d, e, f, g, h )
- );
- }
-*/
}
}// xxx_deque
Modified: sandbox/statistics/support/libs/assign/v2/test/put/pipe/functor/container.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/pipe/functor/container.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/pipe/functor/container.cpp 2011-01-11 19:30:14 EST (Tue, 11 Jan 2011)
@@ -15,7 +15,7 @@
#include <boost/assign/v2/put/modifier/ext/repeat.hpp>
#include <boost/assign/v2/put/pipe/functor.hpp>
#include <libs/assign/v2/test/put/pipe/functor/container.h>
-
+
namespace test_assign_v2{
namespace xxx_put{
namespace xxx_pipe{
@@ -23,7 +23,7 @@
namespace xxx_container{
struct val_pred{
-
+
val_pred(){}
template<typename T, typename U>
void operator()(T const& t, U const& u)const
@@ -33,7 +33,7 @@
};
struct ref_pred{
-
+
ref_pred(){}
template<typename T, typename U>
void operator()(T const& t, U const& u)const
@@ -45,11 +45,12 @@
template<int i, int j, typename T, typename P, typename U>
void local_assert(T& tmp, P const& pred, U const& u)
{
-
- using namespace boost;
+
+ using namespace boost; // tuple<> (cpp03)
+ using namespace boost::assign::v2; // tuple (cpp0x)
pred(
- get<j>(
- tmp.seq_args().get( boost::mpl::int_<i>() )
+ get<j>(
+ tmp.seq_args().get( boost::mpl::int_<i>() )
),
u
);
@@ -100,7 +101,7 @@
local_assert<0, 1>( tmp, ref_pred(), b1);
local_assert<1, 0>( tmp, ref_pred(), a1); local_assert<1, 1>( tmp, ref_pred(), b);
local_assert<2, 0>( tmp, ref_pred(), a1); local_assert<2, 1>( tmp, val_pred(), B);
-
+
local_assert<3, 0>( tmp, ref_pred(), a ); local_assert<3, 1>( tmp, ref_pred(), b1);
local_assert<4, 0>( tmp, ref_pred(), a ); local_assert<4, 1>( tmp, ref_pred(), b);
local_assert<5, 0>( tmp, ref_pred(), a ); local_assert<5, 1>( tmp, val_pred(), B);
@@ -112,7 +113,7 @@
local_assert<9, 0>( tmp, ref_pred(), a1);
local_assert<10, 0>( tmp, ref_pred(), a);
local_assert<11, 0>( tmp, val_pred(), A);
-
+
#undef A
#undef B
}
Modified: sandbox/statistics/support/libs/assign/v2/test/unit_testing/misc.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/unit_testing/misc.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/unit_testing/misc.cpp 2011-01-11 19:30:14 EST (Tue, 11 Jan 2011)
@@ -14,8 +14,8 @@
#include <boost/test/test_tools.hpp>
#define BOOST_ASSIGN_V2_CHECK( p ) BOOST_CHECK( p )
-#include <libs/assign/v2/test/misc/chain.cpp>
-#include <libs/assign/v2/test/misc/convert.cpp>
+#include <libs/assign/v2/test/utility/chain.cpp>
+#include <libs/assign/v2/test/utility/convert.cpp>
#include <boost/test/unit_test.hpp>
using boost::unit_test::test_suite;
test_suite* init_unit_test_suite( int argc, char* argv[] )
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