Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60244 - sandbox/statistics/detail/assign/libs/assign/example
From: erwann.rogard_at_[hidden]
Date: 2010-03-06 11:25:30


Author: e_r
Date: 2010-03-06 11:25:29 EST (Sat, 06 Mar 2010)
New Revision: 60244
URL: http://svn.boost.org/trac/boost/changeset/60244

Log:
m
Text files modified:
   sandbox/statistics/detail/assign/libs/assign/example/ref_list_of.cpp | 10 ++++------
   1 files changed, 4 insertions(+), 6 deletions(-)

Modified: sandbox/statistics/detail/assign/libs/assign/example/ref_list_of.cpp
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/example/ref_list_of.cpp (original)
+++ sandbox/statistics/detail/assign/libs/assign/example/ref_list_of.cpp 2010-03-06 11:25:29 EST (Sat, 06 Mar 2010)
@@ -36,8 +36,7 @@
             int a=1, b=2, c=3;
 
                 {
- ints_ ints(3);
- ints[0] = a; ints[1] = b; ints[2] = c;
+ array[0] = a; array[1] = b; array[2] = c;
             typedef boost::mpl::int_<3> K_;
                     BOOST_AUTO(tmp,
                 cref_list_of(a)(b)(c)
@@ -49,6 +48,9 @@
             BOOST_ASSERT(tmp[0] == a);
             BOOST_ASSERT(tmp[1] == b);
             BOOST_ASSERT(tmp[2] == c);
+ BOOST_ASSERT(tmp[3] == array[0]);
+ BOOST_ASSERT(tmp[4] == array[1]);
+ BOOST_ASSERT(tmp[5] == array[2]);
 
                 }
         {
@@ -61,7 +63,6 @@
             BOOST_ASSERT(ints[2] == c);
             
         }
-/*
         {
             array.assign(-1);
             array = cref_list_of_csv(a,b,3);
@@ -76,9 +77,7 @@
             BOOST_ASSERT(b == 0);
             BOOST_ASSERT(c == 0);
         }
-*/
     }
-/*
     {
         // ref_rebind_list_of_csv
         {
@@ -117,7 +116,6 @@
             }
         }
     }
-*/
 
     os << "<- " << std::endl;
     


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