$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r67866 - in sandbox/statistics/support/libs/assign/v2: example example/put example/ref test/put
From: erwann.rogard_at_[hidden]
Date: 2011-01-09 11:42:12
Author: e_r
Date: 2011-01-09 11:42:10 EST (Sun, 09 Jan 2011)
New Revision: 67866
URL: http://svn.boost.org/trac/boost/changeset/67866
Log:
upd to libs/assign/v2
Text files modified: 
   sandbox/statistics/support/libs/assign/v2/example/foo.h         |    11 -----------                             
   sandbox/statistics/support/libs/assign/v2/example/put/deque.cpp |    21 +++++++++------------                   
   sandbox/statistics/support/libs/assign/v2/example/put/pipe.cpp  |    22 +++++++---------------                  
   sandbox/statistics/support/libs/assign/v2/example/ref/array.cpp |     3 +--                                     
   sandbox/statistics/support/libs/assign/v2/test/put/deque.h      |     2 +-                                      
   5 files changed, 18 insertions(+), 41 deletions(-)
Modified: sandbox/statistics/support/libs/assign/v2/example/foo.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/foo.h	(original)
+++ sandbox/statistics/support/libs/assign/v2/example/foo.h	2011-01-09 11:42:10 EST (Sun, 09 Jan 2011)
@@ -13,7 +13,6 @@
 
 namespace example_assign_v2{
 
-//[foo
 class Foo
 {
         public:
@@ -30,16 +29,6 @@
     int* ptr_a;
     int b;
 };
-//]
-
-
-struct make_foo // TODO remove
-{
-    typedef Foo result_type;
-    result_type operator()(int& a, int const& b)const;
-
-};
-
 
 }// example_assign_v2
 
Modified: sandbox/statistics/support/libs/assign/v2/example/put/deque.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/put/deque.cpp	(original)
+++ sandbox/statistics/support/libs/assign/v2/example/put/deque.cpp	2011-01-09 11:42:10 EST (Sun, 09 Jan 2011)
@@ -27,36 +27,33 @@
             boost::for_each(
                 as2::csv_deque<std::string>("x", "y", "z" ),
                 os << bl::_1 << ' '
-            );
-            // outputs x, y, z
+            ); // outputs x, y, z
             //]
             os << std::endl;
             os << "deque" << ' ';
             {
-            	// TODO put in /test
                     int x = 0;
                                 assert( as2::deque<Foo>( x )().size() == 1 );
             }
             {
                     //[deque
-            	int x = 0, z = 1;
+            	int x = 0, a = 1;
                     boost::for_each(
-                	as2::deque<Foo>( x )()( z, -1 ),
+                	as2::deque<Foo>( x )()( a, -1 ),
                         os << bl::_1 << ' '
                     );
                     // outputs (0,0)(NULL,0)(1,-1)
                     //]
             }
             {
-            	//[deque_push_front
-            	int x = 0, z = 1;
+            	//[deque_front
                     boost::for_each(
-                	(
-                    	as2::deque<Foo>( as2::_nil ) % as2::_push_front
-                	)( x )()( z, -1 ),
-                	os << bl::_1 << ' '
+                    (
+                        as2::deque<int>( as2::_nil ) % as2::_push_front
+                    )( -1 )( 0 )( 1 ),
+                    os << bl::_1 << ' '
                     );
-            	// outputs (1,-1)(NULL,0)(0,0)
+            	// outputs 1 0 -1
                     //]
             }
         }
Modified: sandbox/statistics/support/libs/assign/v2/example/put/pipe.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/put/pipe.cpp	(original)
+++ sandbox/statistics/support/libs/assign/v2/example/put/pipe.cpp	2011-01-09 11:42:10 EST (Sun, 09 Jan 2011)
@@ -38,8 +38,7 @@
             boost::for_each(
                 cont | as2::_csv_put( -1, 0, 1 ),
                 os << bl::_1 << ' '
-            );
-            //outputs -1 0 1
+            ); //outputs -1 0 1
             //]
             os << std::endl;
         }
@@ -76,8 +75,7 @@
             boost::for_each(
                 cont | as2::_csv_put( -1, 0, 1 ),
                 os << bl::_1 << ' '
-            );
-            // outputs -1 0 1
+            ); // outputs -1 0 1
             //]
             os << std::endl;
         }
@@ -88,8 +86,7 @@
             boost::for_each(
                 cont | as2::_csv_put( -1, 0, 1 ),
                 os << bl::_1 << ' '
-            );
-            // output -1 0 1
+            ); // output -1 0 1
             //]
             os << std::endl;
         }
@@ -102,8 +99,7 @@
                     as2::_csv_put % as2::_push_front
                 )( -1, 0, 1 ),
                 os << bl::_1 << ' '
-            );
-            // output 1 0 -1
+            ); // outputs 1 0 -1
             //]
             os << std::endl;
         }
@@ -120,8 +116,7 @@
                     )
                 )( -1, 0, 1 ),
                 os << bl::_1 << ' '
-            );
-            // outputs -2 0 2
+            ); // outputs -2 0 2
             //]
         }
         os << "repeat" << ' ';
@@ -148,12 +143,9 @@
         }
         {
                 //[iterate
-            std::deque<int> cont( 3 );
-            cont[0] = -1;
+            boost::array<int, 3> cont; cont[0] = -1;
             boost::for_each(
-            	cont | (
-                	as2::_csv_put % ( as2::_iterate = 1  )
-            	)( 0, 1 ),
+                cont | ( as2::_csv_put % ( as2::_iterate = 1  ) )( 0, 1 ),
                 os << bl::_1 << ' '
             ); // outputs -1 0 1
             //]
Modified: sandbox/statistics/support/libs/assign/v2/example/ref/array.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/ref/array.cpp	(original)
+++ sandbox/statistics/support/libs/assign/v2/example/ref/array.cpp	2011-01-09 11:42:10 EST (Sun, 09 Jan 2011)
@@ -33,8 +33,7 @@
             boost::for_each(
                 as2::ref::csv_array( "x", "y", "z" ),
                 os << bl::_1 << ' '
-            );
-            //outputs x y z
+            ); //outputs x y z
             //]
             //[csv_array_w
             std::string x, y, z;
Modified: sandbox/statistics/support/libs/assign/v2/test/put/deque.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/deque.h	(original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/deque.h	2011-01-09 11:42:10 EST (Sun, 09 Jan 2011)
@@ -20,4 +20,4 @@
 }// xxx_put
 }// test_assign_v2
 
-#endif
\ No newline at end of file
+#endif