Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59660 - in sandbox/statistics/detail/assign/boost/assign/auto_size: . detail
From: erwann.rogard_at_[hidden]
Date: 2010-02-12 12:03:28


Author: e_r
Date: 2010-02-12 12:03:27 EST (Fri, 12 Feb 2010)
New Revision: 59660
URL: http://svn.boost.org/trac/boost/changeset/59660

Log:
m
Text files modified:
   sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp | 2 +-
   sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of.hpp | 7 ++++---
   2 files changed, 5 insertions(+), 4 deletions(-)

Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp 2010-02-12 12:03:27 EST (Fri, 12 Feb 2010)
@@ -23,7 +23,7 @@
 //
 // The motivation for this class was to improve upon ref_list_of<int>(), by
 // deducing the number of arguments at compile time, and allowing for either
-// of copy or rebind semantics, in case it is used as the lhs of an assignment;
+// of copy and rebind semantics, in case it is used as the lhs of an assignment;
 // the former (copy) being both safer and more common than the latter (rebind).
 //
 // Acknowledgement: The idea of this class was developed in collaboration

Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of.hpp 2010-02-12 12:03:27 EST (Fri, 12 Feb 2010)
@@ -14,14 +14,15 @@
 // std::vector<T> vec = cref_list_of(a)(b)(c);
 // Usage 2:
 // boost::array<T,3> vec = cref_list_of(a)(b)(c);
-// Usage 2:
+// Usage 3:
 // BOOST_AUTO(tmp,ref_list_of(a)(b)(c)); boost::fill(tmp,d);
 //
 // Note that this function supersedes and has the same side effect as
-// ref_list_of<int>(), which still exists only for backward-compatibility.
+// ref_list_of<int>(), which still exists, however, for backward-compatibility.
 //
 // Unlike ref_copy_list_of, it has rebind semantics so that Usage 3 binds d to
-// a, b, c. If in doubt, ref_copy_list_of is the safer option.
+// a, b, c. Unless this very specific need arises, ref_copy_list_of is safer and
+// more straightforward as it takes rvalues.
 
 namespace boost{
 namespace assign{


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