|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60806 - in sandbox/statistics/detail/assign/boost/assign/auto_size: array range
From: erwann.rogard_at_[hidden]
Date: 2010-03-24 07:51:39
Author: e_r
Date: 2010-03-24 07:51:38 EDT (Wed, 24 Mar 2010)
New Revision: 60806
URL: http://svn.boost.org/trac/boost/changeset/60806
Log:
m
Text files modified:
sandbox/statistics/detail/assign/boost/assign/auto_size/array/interface.hpp | 27 +++++++++++++--------------
sandbox/statistics/detail/assign/boost/assign/auto_size/range/chain_l.hpp | 2 +-
sandbox/statistics/detail/assign/boost/assign/auto_size/range/hold_converted_range.hpp | 2 +-
3 files changed, 15 insertions(+), 16 deletions(-)
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/array/interface.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/array/interface.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/array/interface.hpp 2010-03-24 07:51:38 EDT (Wed, 24 Mar 2010)
@@ -24,7 +24,7 @@
namespace detail{
namespace auto_size{
- template<typename T,int N,template<typename> class R>
+ template<typename T,int N,template<typename> class R>
struct array_interface_traits{
typedef typename R<T>::type ref_;
typedef typename ref_array<T,N,R>::type ref_array_;
@@ -98,9 +98,9 @@
const_reference back() const{ return (this->ref_array()).back(); }
void swap(array_interface& other){
- typedef boost::mpl::int_<N> int_n_;
- // TODO swap(this->ref_array(),other.ref_array());
- this->swap_impl(other,int_n_());
+ //typedef boost::mpl::int_<N> int_n_;
+ //this->swap_impl(other,int_n_());
+ std::swap(this->ref_array(),other.ref_array());
}
void assign(const T& val){
@@ -165,17 +165,16 @@
typedef boost::mpl::bool_<false> false_;
typedef boost::mpl::bool_<true> true_;
- void swap_impl(array_interface& other,boost::mpl::int_<0>){}
-
- template<int N1>
- void swap_impl(array_interface& other,boost::mpl::int_<N1>){
- reference lhs = (*this)[N1-1];
- reference rhs = (other)[N1-1];
- lhs.swap(rhs);
- typedef boost::mpl::int_<N1-1> next_int_;
- this->swap_impl(other,next_int_());
- }
+ //void swap_impl(array_interface& other,boost::mpl::int_<0>){}
+ //template<int N1>
+ //void swap_impl(array_interface& other,boost::mpl::int_<N1>){
+ // reference lhs = (*this)[N1-1];
+ // reference rhs = (other)[N1-1];
+ // lhs.swap(rhs);
+ // typedef boost::mpl::int_<N1-1> next_int_;
+ // this->swap_impl(other,next_int_());
+ //}
void assign(const T& val,true_ /*copy semantics*/){
// Force copy semantics. Suggested by M.P.G on Feb 28th, 2010.
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/range/chain_l.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/range/chain_l.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/range/chain_l.hpp 2010-03-24 07:51:38 EDT (Wed, 24 Mar 2010)
@@ -22,7 +22,7 @@
// http://gist.github.com/287791
// developed by MPG, but allows lvalues.
-// Usage : Let r1, r2 and r3 denote lvalue-ranges,
+// Usage : Let r1, r2 and r3 denote lvalues of ranges,
// boost::copy( from, boost::begin( chain_l(r1)(r2)(r3) ) );
// Note: if either of r, r2 or r3 is a range of reference wrappers, then all
// three also have to.
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/range/hold_converted_range.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/range/hold_converted_range.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/range/hold_converted_range.hpp 2010-03-24 07:51:38 EDT (Wed, 24 Mar 2010)
@@ -19,7 +19,7 @@
namespace converted_range{
- template<typename Rng,typename V,typename R> // bool is_first
+ template<typename Rng,typename V,typename R>
class holder{
typedef typename
detail::result_of::convert_range<Rng,V,R>::type storage_;
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