Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70171 - in sandbox/assign_v2/libs/assign/v2/test/value: . modifier pipe pipe/modifier
From: erwann.rogard_at_[hidden]
Date: 2011-03-18 20:30:48


Author: e_r
Date: 2011-03-18 20:30:46 EDT (Fri, 18 Mar 2011)
New Revision: 70171
URL: http://svn.boost.org/trac/boost/changeset/70171

Log:
upd assign_v2
Text files modified:
   sandbox/assign_v2/libs/assign/v2/test/value/fun.cpp | 36 +-----------------------------------
   sandbox/assign_v2/libs/assign/v2/test/value/modifier/iterate.cpp | 3 ++-
   sandbox/assign_v2/libs/assign/v2/test/value/modifier/lookup.cpp | 5 ++++-
   sandbox/assign_v2/libs/assign/v2/test/value/pipe/fun.cpp | 2 +-
   sandbox/assign_v2/libs/assign/v2/test/value/pipe/modifier/iterate.cpp | 2 +-
   sandbox/assign_v2/libs/assign/v2/test/value/pipe/modifier/lookup.cpp | 2 +-
   6 files changed, 10 insertions(+), 40 deletions(-)

Modified: sandbox/assign_v2/libs/assign/v2/test/value/fun.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/value/fun.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/value/fun.cpp 2011-03-18 20:30:46 EDT (Fri, 18 Mar 2011)
@@ -32,43 +32,11 @@
 namespace xxx_value{
 namespace xxx_fun{
 
-#ifdef __llvm__
-
- struct f{
-
- typedef int result_type;
-
- template<typename T>
- result_type operator()(T const& i)const{ return i + 1; };
-
- };
-
     void test()
     {
         using namespace boost;
         namespace as2 = assign::v2;
         {
- std::vector<int> incr;
- (
- as2::put( incr ) % ( as2::_fun = f() )
- )( 1 )( 2 )( 3 )( 4 )( 5 );
-
- BOOST_ASSIGN_V2_CHECK( incr.front() == ( 2 ) );
- BOOST_ASSIGN_V2_CHECK( incr.back() == ( 6 ) );
- // TODO fix Bug :
- // LLVM 1.5 - Release mode, EXC_BAD_ACCESS, stl_vector.h #602
- }
-
- }
-
-#else
-
- void test()
- {
- using namespace boost;
- using namespace lambda;
- namespace as2 = assign::v2;
- {
             //[test_value_fun_math
             std::vector<double> exponent;
             typedef function<double(double)> f_;
@@ -84,6 +52,7 @@
         }
         {
             //[test_value_fun_recursive
+ using namespace lambda;
             int i = 1, k = 1;
             BOOST_AUTO(
                 factorials, (
@@ -99,9 +68,6 @@
 
     }
 
-#endif
-
-
 }// xxx_fun
 }// xxx_value
 }// test_assign_v2

Modified: sandbox/assign_v2/libs/assign/v2/test/value/modifier/iterate.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/value/modifier/iterate.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/value/modifier/iterate.cpp 2011-03-18 20:30:46 EDT (Fri, 18 Mar 2011)
@@ -33,7 +33,6 @@
     void test()
     {
         using namespace boost;
- using namespace lambda;
         namespace as2 = assign::v2;
         {
             //[test_value_modifier_iterate_meta
@@ -52,6 +51,7 @@
         }
         {
             //[test_value_modifier_iterate_shifted
+ using namespace lambda;
             typedef int T; array<T, 4> powers; powers[0] = 1; powers[1] = 10;
             int index = 2; ( as2::put( powers ) % ( as2::_iterate = var( index )++ ) )( 100 )( 1000 );
 
@@ -74,6 +74,7 @@
         }
         {
             //[test_value_modifier_iterate_shifted_deque
+ using namespace lambda;
             as2::result_of::deque<int>::type missing_tail = as2::deque<int>( 1 )( 10 )( -1 )( -1 );
             int index = 2;
             

Modified: sandbox/assign_v2/libs/assign/v2/test/value/modifier/lookup.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/value/modifier/lookup.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/value/modifier/lookup.cpp 2011-03-18 20:30:46 EDT (Fri, 18 Mar 2011)
@@ -32,10 +32,10 @@
     void test()
     {
         using namespace boost;
- using namespace lambda;
         namespace as2 = assign::v2;
         {
             //[test_value_modifier_lookup_meta
+ using namespace lambda;
             typedef BOOST_TYPEOF(_1) arg_;
             typedef as2::value_aux::keyword_lookup keyword_;
             typedef as2::value_aux::modulo_modifier<keyword_, arg_> modulo_;
@@ -51,6 +51,7 @@
         }
         {
             //[test_value_modifier_lookup_map
+ using namespace lambda;
             typedef std::string str_; typedef std::map<str_, int> C; C year;
             (
                 as2::put( year )( "feb", 28 )( "apr", 30 )( "jun", 30 )( "sep", 30 )( "nov", 30 )
@@ -63,6 +64,7 @@
         }
         {
             //[test_value_modifier_lookup_meta_deque
+ using namespace lambda;
             typedef BOOST_TYPEOF(_1) arg_;
             typedef as2::value_aux::keyword_lookup keyword_;
             typedef as2::value_aux::modulo_modifier<keyword_, arg_> modulo_;
@@ -77,6 +79,7 @@
         }
         {
             //[test_value_modifier_lookup_map_deque
+ using namespace lambda;
             BOOST_AUTO(
                 days_in_first_quater,
                 (

Modified: sandbox/assign_v2/libs/assign/v2/test/value/pipe/fun.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/value/pipe/fun.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/value/pipe/fun.cpp 2011-03-18 20:30:46 EDT (Fri, 18 Mar 2011)
@@ -32,11 +32,11 @@
     void test()
     {
         using namespace boost;
- using namespace lambda;
         namespace as2 = assign::v2;
         {
             //[csv_pipe_modulo_fun_math
             int i = 0, k = 1; std::list<int> factorials;
+ using namespace lambda;
             
             BOOST_ASSIGN_V2_CHECK(
                 range::equal(

Modified: sandbox/assign_v2/libs/assign/v2/test/value/pipe/modifier/iterate.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/value/pipe/modifier/iterate.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/value/pipe/modifier/iterate.cpp 2011-03-18 20:30:46 EDT (Fri, 18 Mar 2011)
@@ -26,12 +26,12 @@
     void test()
     {
         using namespace boost;
- using namespace lambda;
         namespace as2 = assign::v2;
         
         {
         
             //[pipe_iterate
+ using namespace lambda;
             typedef int T; boost::array<T, 4> powers; powers[0] = 1; powers[1] = 10;
             int i = 2;
             BOOST_ASSIGN_V2_CHECK(

Modified: sandbox/assign_v2/libs/assign/v2/test/value/pipe/modifier/lookup.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/value/pipe/modifier/lookup.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/value/pipe/modifier/lookup.cpp 2011-03-18 20:30:46 EDT (Fri, 18 Mar 2011)
@@ -27,10 +27,10 @@
     void test()
     {
         using namespace boost;
- using namespace lambda;
         namespace as2 = assign::v2;
         {
             //[pipe_lookup
+ using namespace lambda;
             std::map<std::string, int> cal;
             BOOST_AUTO( _local, ( as2::_fun = _1 ) );
             BOOST_ASSIGN_V2_CHECK(


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