Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59478 - sandbox/statistics/detail/assign/boost/assign
From: erwann.rogard_at_[hidden]
Date: 2010-02-04 14:32:33


Author: e_r
Date: 2010-02-04 14:32:32 EST (Thu, 04 Feb 2010)
New Revision: 59478
URL: http://svn.boost.org/trac/boost/changeset/59478

Log:
m
Text files modified:
   sandbox/statistics/detail/assign/boost/assign/cref_list_of2.hpp | 13 ++++++-------
   1 files changed, 6 insertions(+), 7 deletions(-)

Modified: sandbox/statistics/detail/assign/boost/assign/cref_list_of2.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/cref_list_of2.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/cref_list_of2.hpp 2010-02-04 14:32:32 EST (Thu, 04 Feb 2010)
@@ -23,8 +23,10 @@
 namespace boost{
 namespace assign{
 
+ // This is as efficient as Boost.Assign's cref_list_of but more
+ // convenient as the number of items must not be specified in advance
     // Usage : vec = cref_list2_of(a)(b)(c)
- // The idea of this class was developed in collaboration with M.P.
+ // The idea of this class was developed in collaboration with M.P.G.
 
 namespace cref_list_of2_impl{
             
@@ -59,12 +61,10 @@
                 
         typedef typename ref<T>::type ref_;
         typedef typename ref_array<T,N>::type ref_array_;
-
-
+
         previous_ previous;
- ref_ ref;
-
         typedef typename next<E,T,N>::type next_;
+ ref_ ref;
                 
         // public:
         typedef next_ result_type;
@@ -160,13 +160,12 @@
     template<typename T>
     struct first{
         typedef cref_list_of2_impl::expr<
- cref_list_of2_impl::top_,T,1> type;
+ cref_list_of2_impl::top_,T,1> type;
     };
             
             
 }// cref_list_of2_impl
         
-
     template<typename T>
     typename cref_list_of2_impl::first<T>::type
     cref_list_of2(const T& t){


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