Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66865 - sandbox/statistics/support/boost/assign/v2/chain/checking
From: erwann.rogard_at_[hidden]
Date: 2010-11-29 19:48:42


Author: e_r
Date: 2010-11-29 19:48:40 EST (Mon, 29 Nov 2010)
New Revision: 66865
URL: http://svn.boost.org/trac/boost/changeset/66865

Log:
minor update to boost/assign/v2/chain
Text files modified:
   sandbox/statistics/support/boost/assign/v2/chain/checking/twin_values.hpp | 36 +++++++++++++++++++-----------------
   1 files changed, 19 insertions(+), 17 deletions(-)

Modified: sandbox/statistics/support/boost/assign/v2/chain/checking/twin_values.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/chain/checking/twin_values.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/chain/checking/twin_values.hpp 2010-11-29 19:48:40 EST (Mon, 29 Nov 2010)
@@ -21,7 +21,7 @@
 #include <boost/assign/v2/chain.hpp>
 
 namespace boost{
-namespace assign{
+namespace assign{
 namespace v2{
 namespace checking{
 namespace chain{
@@ -76,7 +76,7 @@
 
     template<typename T>
     void do_check()
- {
+ {
             // mpl checks
         {
                 typedef std::vector<T> vec_;
@@ -88,7 +88,7 @@
                 typedef v2::result_of::chain<range1_ const,vec_> caller2_;
                 typedef typename caller2_::type range2_;
                 typedef typename boost::range_reference<range2_>::type ref2_;
- typedef boost::is_same<ref2_,T &> is_same2_;
+ typedef boost::is_same<ref2_,T &> is_same2_;
                 BOOST_STATIC_ASSERT(is_same2_::value);
             }
 // (qual_v1, qual_e2 , qual_v2 , the_value)
@@ -102,7 +102,7 @@
 BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl( const , const , const , false )
 
         // runtime checks
- {
+ {
                     typedef std::vector<T> vt_;
             vt_ vt1( 2 ), vt2( 3 ), vt3( 3 );
                         vt_ vt;
@@ -118,16 +118,16 @@
                 vt.push_back( ns::h );
                 {
                         using namespace adaptor;
- boost::copy(
- vt,
+ boost::copy(
+ vt,
                             boost::begin( vt1 | _chain( vt2 ) | _chain( vt3 ))
                         );
                 }
                 {
                         using namespace adaptor;
                         typedef v2::container_tag::range tag_;
- v2::checking::do_check(
- tag_(),
+ v2::checking::do_check(
+ tag_(),
                         vt1 | _chain( vt2 ) | _chain( vt3 )
                     );
                 }
@@ -137,11 +137,13 @@
 
                     typedef typename ref::type_traits::copy_wrapper<T>::type w_;
                     typedef boost::is_reference_wrapper<w_> is_;
-
+
                 // TODO std::vector causes problems.
- boost::array<int, 2> vw1;
- boost::array<int, 3> vw2, vw3;
- {
+ //boost::array<int, 2> vw1;
+ boost::array<int, 3> vw2;//, vw3;
+ std::vector<int> vw1( 2 );
+ std::vector<int> vw3( 3 );
+ /*{
                         vw1[ 0 ] = a1 ;
                         vw1[ 1 ] = b1 ;
                         vw2[ 0 ] = c1 ;
@@ -150,16 +152,16 @@
                         vw3[ 0 ] = f1 ;
                         vw3[ 1 ] = g1 ;
                         vw3[ 2 ] = h1 ;
- }
+ }*/
                                 using namespace adaptor;
- boost::copy(
- vt,
+ boost::copy(
+ vt,
                     boost::begin( vw1 | _chain( vw2 ) | _chain( vw3 ) )
                 );
                 {
                         typedef v2::container_tag::range tag_;
- v2::checking::do_check(
- tag_(),
+ v2::checking::do_check(
+ tag_(),
                         vw1 | _chain( vw2 ) | _chain( vw3 )
                     );
                 }


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