Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59947 - in sandbox/statistics/detail/assign: boost/assign/auto_size/detail libs/assign/example
From: erwann.rogard_at_[hidden]
Date: 2010-02-26 08:55:42


Author: e_r
Date: 2010-02-26 08:55:41 EST (Fri, 26 Feb 2010)
New Revision: 59947
URL: http://svn.boost.org/trac/boost/changeset/59947

Log:
m
Text files modified:
   sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp | 4 ++--
   sandbox/statistics/detail/assign/libs/assign/example/cref_list_of2.cpp | 16 ----------------
   2 files changed, 2 insertions(+), 18 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-26 08:55:41 EST (Fri, 26 Feb 2010)
@@ -19,7 +19,7 @@
 #include <boost/assign/list_of.hpp> // needed for assign_referene
 #include <boost/assign/auto_size/detail/assign_refence_copy.hpp>
 
-// Creates a collection of references having the interface of boost::array and
+// Creates a collection of references exposing the boost::array interface and
 // convertible to a range constructible from a pair of iterators.
 //
 // This approach improves upon ref_list_of<int>() by deducing the number of
@@ -152,7 +152,7 @@
 
         reference operator[](size_type i){ return (this->ref_array())[i]; }
         const_reference operator[](size_type i)const{
- return (this->array())[i]; }
+ return (this->array())[i]; }
                         
         reference front(){ return (this->ref_array()).front(); }
         const_reference front() const{ return (this->ref_array()).front(); }

Modified: sandbox/statistics/detail/assign/libs/assign/example/cref_list_of2.cpp
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/example/cref_list_of2.cpp (original)
+++ sandbox/statistics/detail/assign/libs/assign/example/cref_list_of2.cpp 2010-02-26 08:55:41 EST (Fri, 26 Feb 2010)
@@ -15,22 +15,6 @@
 #include <boost/assign/list_of.hpp>
 #include <libs/assign/example/cref_list_of2.h>
 
-struct Foo
-{
- int i;
- bool destroyed;
- Foo(){}
- Foo(int i) : i(i) { destroyed = false; }
- ~Foo() { destroyed = true;}
-};
-std::ostream & operator<<(std::ostream & os, Foo const & i)
-{
- if(i.destroyed)
- return os << "You have a bug\n";
- return os << i.i;
-}
-
-
 void example_cref_list_of(std::ostream& os)
 {
         os << "-> example_cref_listof2 : ";


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