[Boost-bugs] [Boost C++ Libraries] #3222: const-correctness and documentation bugs

Subject: [Boost-bugs] [Boost C++ Libraries] #3222: const-correctness and documentation bugs
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-26 15:47:00

#3222: const-correctness and documentation bugs
 Reporter: fhess | Owner: garcia
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: multi_array
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: |
 I am able to modify a const multi_array through a multi_array_ref. For

 const boost::multi_array<int, 2> myarray(boost::extents[2][2]);
 boost::multi_array_ref<int, 2> myarrayref(myarray);
 myarrayref[0][1] = 2;

 IMO, trying to create a multi_array_ref from a const multi_array should
 fail to compile, only a const_multi_array_ref should work.
 Also, the reference doesn't include the public inheritance between
 multi_array, multi_array_ref, and const_multi_array in their class
 synopses. It is important because it seems to be the only reason you can
 do conversions from multi_array to multi_array_ref or

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