|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59926 - sandbox/statistics/detail/assign/boost/assign/auto_size/detail
From: erwann.rogard_at_[hidden]
Date: 2010-02-25 18:01:20
Author: e_r
Date: 2010-02-25 18:01:20 EST (Thu, 25 Feb 2010)
New Revision: 59926
URL: http://svn.boost.org/trac/boost/changeset/59926
Log:
m
Text files modified:
sandbox/statistics/detail/assign/boost/assign/auto_size/detail/assign_refence_copy.hpp | 2 +-
sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp | 24 ++++++++++++------------
2 files changed, 13 insertions(+), 13 deletions(-)
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/assign_refence_copy.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/assign_refence_copy.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/assign_refence_copy.hpp 2010-02-25 18:01:20 EST (Thu, 25 Feb 2010)
@@ -16,7 +16,7 @@
// This is a reference wrapper whose assignment operator copies the value of
// the rhs to the object pointed to.
//
- // In contrast assign_reference's assignement operator rebinds the address
+ // In contrast, assign_reference's assignement operator rebinds the address
// of the internal pointer. For the same effect, here, use rebind()
template< class T >
struct assign_reference_copy
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-25 18:01:20 EST (Thu, 25 Feb 2010)
@@ -147,20 +147,20 @@
return !(this->size());
}
- typedef typename ref_array_::reference reference;
- typedef typename ref_array_::const_reference const_reference;
+ typedef typename ref_array_::reference reference;
+ typedef typename ref_array_::const_reference const_reference;
- reference operator[](size_type i){ return (this->ref_array())[i]; }
- const_reference operator[](size_type i)const{
- return (this->array())[i]; }
-
- reference front(){ return (this->ref_array()).front(); }
- const_reference front() const{ return (this->ref_array()).front(); }
- reference back(){ return (this->ref_array()).back(); }
- const_reference back() const{ return (this->ref_array()).back(); }
+ reference operator[](size_type i){ return (this->ref_array())[i]; }
+ const_reference operator[](size_type i)const{
+ return (this->array())[i]; }
+
+ reference front(){ return (this->ref_array()).front(); }
+ const_reference front() const{ return (this->ref_array()).front(); }
+ reference back(){ return (this->ref_array()).back(); }
+ const_reference back() const{ return (this->ref_array()).back(); }
- void swap(ref_array_& other){ return (this->ref_array()).swap(other); }
- void assign(const T& val){ return (this->ref_array()).assign(val); }
+ void swap(ref_array_& other){ return (this->ref_array()).swap(other); }
+ void assign(const T& val){ return (this->ref_array()).assign(val); }
mutable previous_ previous;
mutable ref_ ref;
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