[Boost-bugs] [Boost C++ Libraries] #11471: array is a sequence

Subject: [Boost-bugs] [Boost C++ Libraries] #11471: array is a sequence
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-07-10 20:12:06


#11471: array is a sequence
------------------------------+---------------------
 Reporter: akrzemi1 | Owner: rogeeff
     Type: Feature Requests | Status: new
Milestone: Boost 1.60.0 | Component: test
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 According to docs of Boost.Test v3, a C-array is not recognized as a
 sequence, and cannot be used with sequence-based test assertions. I think
 it is an unjustified limitation.

 Instead of requiring that type T should have member functions .begin(),
 .size(), use the approach taken by Boost.Foreach, and only require of
 ranges, that the following expressions are valid:

   boost::begin(e),
   boost::end(e)

 There is no need to require size(), one can always compute it from
 `std::distance(begin(e), end(e))`.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11471>
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:18 UTC