$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r59610 - sandbox/statistics/detail/assign/boost/assign
From: erwann.rogard_at_[hidden]
Date: 2010-02-09 20:17:59
Author: e_r
Date: 2010-02-09 20:17:58 EST (Tue, 09 Feb 2010)
New Revision: 59610
URL: http://svn.boost.org/trac/boost/changeset/59610
Log:
m
Text files modified: 
   sandbox/statistics/detail/assign/boost/assign/cref_list_of2.hpp |    14 ++++++++++----                          
   1 files changed, 10 insertions(+), 4 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-09 20:17:58 EST (Tue, 09 Feb 2010)
@@ -18,7 +18,7 @@
 #include <boost/array.hpp>
 #include <boost/range.hpp>
 #include <boost/assign/detail/assign_value.hpp>
-#include <boost/assign/list_of.hpp> // optionally needed for assign_referene
+#include <boost/assign/list_of.hpp> // needed for assign_referene
 
 namespace boost{
 namespace assign{
@@ -29,8 +29,10 @@
     // Usage 1: 
     // 	std::vector<T> vec = cref_list_of(a)(b)(c);
     // Usage 2: 
+    // 	boost::array<T,3> vec = cref_list_of(a)(b)(c);
+    // Usage 4: 
     // 	boost::fill( ref_list_of(a)(b)(c) , 0); 
-    // Usage 3:
+    // Usage 5:
     // BOOST_AUTO(tmp,ref_rebind_list_of(a)(b)(c)); boost::fill(tmp,d);
         //    
     // Acknowledgement: The idea of this class was developed in collaboration 
@@ -44,7 +46,10 @@
     // side effect when assigning with rebind semantics. The loss of performan-
     // ce is neligible in the test.
     // Feb 5, 2010 : First version. rebind semantics.
-    
+	//
+    // Note : ref_list_of<int>() and ref_list_of() are overloads hence do not
+    // conflict with each other.
+        
 namespace cref_list_of_impl{
             
         typedef boost::mpl::void_ top_;
@@ -202,6 +207,7 @@
             
 }// cref_list_of_impl        
         
+    // Copy semantics
     template<typename T>
     typename cref_list_of_impl::first<const T>::type
     cref_list_of(const T& t){
@@ -216,6 +222,7 @@
         return expr_(t);
     }
 
+    // Rebind semantics
     template<typename T>
     typename cref_list_of_impl::bind_first<const T>::type
     cref_rebind_list_of(const T& t){
@@ -230,7 +237,6 @@
         return expr_(t);
     }
 
-    
 }// assign
 }// boost