Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62604 - trunk/boost/multi_array
From: jewillco_at_[hidden]
Date: 2010-06-08 18:46:38


Author: jewillco
Date: 2010-06-08 18:46:36 EDT (Tue, 08 Jun 2010)
New Revision: 62604
URL: http://svn.boost.org/trac/boost/changeset/62604

Log:
Changed to Boost.Iterator operator_arrow_proxy
Text files modified:
   trunk/boost/multi_array/iterator.hpp | 19 -------------------
   1 files changed, 0 insertions(+), 19 deletions(-)

Modified: trunk/boost/multi_array/iterator.hpp
==============================================================================
--- trunk/boost/multi_array/iterator.hpp (original)
+++ trunk/boost/multi_array/iterator.hpp 2010-06-08 18:46:36 EDT (Tue, 08 Jun 2010)
@@ -33,17 +33,6 @@
 // iterator components
 /////////////////////////////////////////////////////////////////////////
 
-template <class T>
-struct operator_arrow_proxy
-{
- operator_arrow_proxy(T const& px) : value_(px) {}
- T* operator->() const { return &value_; }
- // This function is needed for MWCW and BCC, which won't call operator->
- // again automatically per 13.3.1.2 para 8
- operator T*() const { return &value_; }
- mutable T value_;
-};
-
 template <typename T, typename TPtr, typename NumDims, typename Reference>
 class array_iterator;
 
@@ -114,14 +103,6 @@
     strides_(rhs.strides_), index_base_(rhs.index_base_) { }
 
 
- // RG - we make our own operator->
- operator_arrow_proxy<reference>
- operator->() const
- {
- return operator_arrow_proxy<reference>(this->dereference());
- }
-
-
   reference dereference() const
   {
     typedef typename value_accessor_generator<T,NumDims>::type accessor;


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