Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60065 - in sandbox/statistics/detail/assign: boost/assign/auto_size/detail libs/assign/example
From: erwann.rogard_at_[hidden]
Date: 2010-03-01 20:33:54


Author: e_r
Date: 2010-03-01 20:33:53 EST (Mon, 01 Mar 2010)
New Revision: 60065
URL: http://svn.boost.org/trac/boost/changeset/60065

Log:
m
Text files modified:
   sandbox/statistics/detail/assign/boost/assign/auto_size/detail/csv.hpp | 2 +-
   sandbox/statistics/detail/assign/libs/assign/example/ref_list_of.cpp | 15 ++++++---------
   2 files changed, 7 insertions(+), 10 deletions(-)

Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/csv.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/csv.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/csv.hpp 2010-03-01 20:33:53 EST (Mon, 01 Mar 2010)
@@ -25,7 +25,7 @@
 // array_wrapper<U,N,BOOST_ASSIGN_CSV_ref>.
 //
 // Usage:
-// BOOST_ASSIGN_CSV(fun) creates for i=2,...,n the following overloads:
+// BOOST_ASSIGN_CSV(fun) creates for i=1,...,n the following overloads:
 // fun_csv(a1,..,.ai)
 // cfun_csv(a1,..,.ai)
 // which return instances of w<T,i> and w<const T,i>, respectively.

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-01 20:33:53 EST (Mon, 01 Mar 2010)
@@ -10,8 +10,6 @@
 #include <vector>
 #include <algorithm>
 #include <boost/typeof/typeof.hpp>
-//#include <boost/assign/auto_size/ref_rebind_list_of.hpp>
-//#include <boost/assign/auto_size/ref_list_of.hpp>
 #include <boost/assign/auto_size/ref_list_of_csv.hpp>
 #include <boost/assign/auto_size/ref_rebind_list_of_csv.hpp>
 #include <boost/assign/auto_size/array/wrapper.hpp>
@@ -21,20 +19,20 @@
 
 void example_ref_list_of(std::ostream& os)
 {
- os << "-> example_ref_listof : ";
- using namespace boost::assign;
+ os << "-> example_ref_listof : ";
+ using namespace boost::assign;
     
- typedef std::vector<int> ints_;
+ typedef std::vector<int> ints_;
     typedef boost::array<int,3> array_;
- array_ array;
+ array_ array;
 
- // Since operator= calls begin() and end(), no need to test these separately
+ // Since operator= calls begin() and end(), no need to test these separately
 
+ ints_ ints;
     {
         // cref_list_of_csv
 
             int a=1, b=2, c=3;
- ints_ ints;
     
         {
                     ints.clear();
@@ -63,7 +61,6 @@
         // ref_rebind_list_of_csv
         {
             int a=1, b=2, c=3;
- ints_ ints;
             ints.clear();
             BOOST_AUTO(tmp,cref_rebind_list_of_csv(a,b,c));
             {


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