Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60249 - in sandbox/statistics/detail/assign: boost/assign/auto_size/detail libs/assign/doc libs/assign/src
From: erwann.rogard_at_[hidden]
Date: 2010-03-06 11:54:35


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

Log:
m
Text files modified:
   sandbox/statistics/detail/assign/boost/assign/auto_size/detail/csv.hpp | 3 ++-
   sandbox/statistics/detail/assign/boost/assign/auto_size/detail/expr.hpp | 8 +++++---
   sandbox/statistics/detail/assign/libs/assign/doc/revision_history.txt | 3 +--
   sandbox/statistics/detail/assign/libs/assign/src/main.cpp | 8 ++++----
   4 files changed, 12 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-06 11:54:35 EST (Sat, 06 Mar 2010)
@@ -18,7 +18,8 @@
 
 // Whereas adjacent unary function calls is the usual way to create a collec-
 // tion in Boost.Assign, this macro provides, as an alternative, functions that
-// are overloaded on the number of arguments.
+// are overloaded on the number of arguments. The result, by default, is a
+// static array; in particular, it cannot be grown further.
 //
 // Let n = BOOST_ASSIGN_CSV_SIZE and a1,...,an, objects of type T, Ref an alias
 // for BOOST_ASSIGN_CSV_ref, P0 = BOOST_ASSIGN_CSV_DEF_POLICY and r<U,N,P> an

Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/expr.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/expr.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/expr.hpp 2010-03-06 11:54:35 EST (Sat, 06 Mar 2010)
@@ -22,6 +22,7 @@
 #include <boost/range.hpp>
 #include <boost/assign/list_of.hpp> // needed for assign_reference
 #include <boost/assign/auto_size/detail/has_static_size.hpp>
+#include <boost/assign/auto_size/detail/static_size.hpp>
 #include <boost/assign/auto_size/detail/assign_reference_copy.hpp>
 #include <boost/assign/auto_size/detail/policy.hpp>
 #include <boost/assign/auto_size/detail/types.hpp>
@@ -168,7 +169,8 @@
 
         template<typename Range>
         struct result_of_range3 : result_of_range2<
- boost::remove_const<Range>::type::static_size, Range>{};
+ auto_size::static_size<
+ typename boost::remove_const<Range>::type>::value, Range>{};
 
         public:
 
@@ -220,7 +222,7 @@
             result_of_range3<Range>
>::type
         range(Range& r){
- return this->range<Range::static_size>(r);
+ return this->range<auto_size::static_size<Range>::value>(r);
         }
 
         template<typename Range>
@@ -229,7 +231,7 @@
             result_of_range3<const Range>
>::type
         range(const Range& r){
- return this->range<Range::static_size>(r);
+ return this->range<auto_size::static_size<Range>::value>(r);
         }
 
         mutable previous_ previous;

Modified: sandbox/statistics/detail/assign/libs/assign/doc/revision_history.txt
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/doc/revision_history.txt (original)
+++ sandbox/statistics/detail/assign/libs/assign/doc/revision_history.txt 2010-03-06 11:54:35 EST (Sat, 06 Mar 2010)
@@ -4,8 +4,7 @@
 // March 4, 2010 : Created function template overloads to ref_list_of() etc.
 // that allow to specify a policy.
 // March 1, 2010 : Factored interface into a policy. Csv functions now return an
-// array-like structure; the collection is only used to build them which is
-// much more efficient.
+// array-like structure; the collection is discarded.
 // Feb 27, 2010 : Support for comma separated arguments (See csv.hpp)
 // Feb 25, 2010 : Added array-like functionality.
 // Feb 21, 2010 : Made member variables mutable and added constness to member

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-03-06 11:54:35 EST (Sat, 06 Mar 2010)
@@ -1,13 +1,13 @@
 #include <iostream>
 #include <libs/assign/example/ref_list_of.h>
-#include <libs/assign/test/speed.h>
-//#include <libs/assign/test/speed2.h>
+//#include <libs/assign/test/speed.h>
+#include <libs/assign/test/speed2.h>
 
 int main (int argc, char * const argv[]) {
 
     example_ref_list_of(std::cout);
- test_speed(std::cout);
- //test_speed2(std::cout);
+ //test_speed(std::cout);
+ test_speed2(std::cout);
 
     return 0;
 


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