$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r59971 - in sandbox/statistics/detail/assign/libs/assign: example src test
From: erwann.rogard_at_[hidden]
Date: 2010-02-27 21:11:19
Author: e_r
Date: 2010-02-27 21:11:18 EST (Sat, 27 Feb 2010)
New Revision: 59971
URL: http://svn.boost.org/trac/boost/changeset/59971
Log:
m
Text files modified: 
   sandbox/statistics/detail/assign/libs/assign/example/cref_list_of2.cpp |    28 ++++------------------------            
   sandbox/statistics/detail/assign/libs/assign/src/main.cpp              |     2 +-                                      
   sandbox/statistics/detail/assign/libs/assign/test/speed.cpp            |     2 +-                                      
   3 files changed, 6 insertions(+), 26 deletions(-)
Modified: sandbox/statistics/detail/assign/libs/assign/example/cref_list_of2.cpp
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/example/cref_list_of2.cpp	(original)
+++ sandbox/statistics/detail/assign/libs/assign/example/cref_list_of2.cpp	2010-02-27 21:11:18 EST (Sat, 27 Feb 2010)
@@ -32,41 +32,22 @@
             int a=1, b=2, c=3;
             ints_ ints;
     
-    	{	os <<  "->Testing work in progress : csv " << std::endl;
-    		typedef detail::auto_size::result_of_copy<const int,3>::type res_;
-
-            {
-            	res_ res = cref_list_of(a)(b)(3); 
-				BOOST_ASSERT(res[0] == a); 
-				BOOST_ASSERT(res[1] == b);
-				BOOST_ASSERT(res[2] == 3);
-			}
-            {
-            	// BUG
-            	res_ res  = cref_list_of(a,b,c); 
-				BOOST_ASSERT(res[0] == a); //wrong
-				BOOST_ASSERT(res[1] == b); //wrong
-				BOOST_ASSERT(res[2] == c); //correct
-            }
-			os << "<-" << std::endl;
-    	}
-/*    
         {
                     ints.clear();
-            ints = cref_list_of(a)(b)(3);     
+            ints = cref_list_of(a,b,3);     
             BOOST_ASSERT(ints[0] == a);    
             BOOST_ASSERT(ints[1] == b);    
             BOOST_ASSERT(ints[2] == c);    
         }
         {
             array.assign(-1);
-            array = cref_list_of(a)(b)(3);
+            array = cref_list_of(a,b,3);
             BOOST_ASSERT(array[0] == a);    
             BOOST_ASSERT(array[1] == b);    
             BOOST_ASSERT(array[2] == c);    
         }
         {
-            BOOST_AUTO(tmp,ref_list_of(a)(b)(c));
+            BOOST_AUTO(tmp,ref_list_of(a,b,c));
             std::fill(boost::begin(tmp),boost::end(tmp),0);
             BOOST_ASSERT(a == 0);    
             BOOST_ASSERT(b == 0);    
@@ -79,7 +60,7 @@
             int a=1, b=2, c=3;
             ints_ ints;
             ints.clear();
-            BOOST_AUTO(tmp,cref_rebind_list_of(a)(b)(c));
+            BOOST_AUTO(tmp,cref_rebind_list_of(a,b,c));
             {
                 ints = tmp; 
                 BOOST_ASSERT(ints[0] == a);    
@@ -96,7 +77,6 @@
                 BOOST_ASSERT(ints[2] == d);    
             }
         }
-*/
     }
     os << "<- " << std::endl;
     
Modified: sandbox/statistics/detail/assign/libs/assign/src/main.cpp
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/src/main.cpp	(original)
+++ sandbox/statistics/detail/assign/libs/assign/src/main.cpp	2010-02-27 21:11:18 EST (Sat, 27 Feb 2010)
@@ -1,6 +1,6 @@
 #include <iostream>
 #include <libs/assign/example/cref_list_of2.h>
-#include <libs/assign/test/cref_list_of2_speed.h>
+#include <libs/assign/test/speed.h>
 #include <libs/assign/test/speed_csv.h>
 //#include <libs/assign/test/static_list_of_auto_size.h>
 
Modified: sandbox/statistics/detail/assign/libs/assign/test/speed.cpp
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/test/speed.cpp	(original)
+++ sandbox/statistics/detail/assign/libs/assign/test/speed.cpp	2010-02-27 21:11:18 EST (Sat, 27 Feb 2010)
@@ -10,7 +10,7 @@
 #include <boost/typeof/typeof.hpp>
 #include <boost/assign/auto_size/ref_list_of.hpp>
 #include <libs/assign/test/speed_common.h>
-#include <libs/assign/test/cref_list_of2_speed.h>
+#include <libs/assign/test/speed.h>
 
 // This file was provided by M.P.G