[Boost-bugs] [Boost C++ Libraries] #11650: boost range size() fails concept on subarray of a const multi_array

Subject: [Boost-bugs] [Boost C++ Libraries] #11650: boost range size() fails concept on subarray of a const multi_array
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-14 10:06:01


#11650: boost range size() fails concept on subarray of a const multi_array
-----------------------------------------+------------------------
 Reporter: John Reid <johnbaronreid@…> | Owner: neilgroves
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
-----------------------------------------+------------------------
 Small test case:


 {{{
 #include <boost/range/size.hpp>
 #include <boost/multi_array.hpp>

 using namespace boost;

 typedef multi_array<float, 2> myarray;
 myarray a;
 const myarray const_a;

 void
 test() {
     boost::size( a[0] ); // Compiles fine
     boost::size( const_a ); // Compiles fine
     boost::size( const_a[0] ); // Fails single pass range concept
 }
 }}}

 gives me the attached errors. I'm using gcc 4.8.4 on Ubuntu 14.04 with
 boost 1.59.0

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11650>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC