[Boost-bugs] [Boost C++ Libraries] #11207: boost::numeric::ublas::shallow_array_adaptor broken when compiling with -DNDEBUG

Subject: [Boost-bugs] [Boost C++ Libraries] #11207: boost::numeric::ublas::shallow_array_adaptor broken when compiling with -DNDEBUG
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-20 14:01:19


#11207: boost::numeric::ublas::shallow_array_adaptor broken when compiling with
-DNDEBUG
------------------------------+---------------------
 Reporter: Mark.Moll@… | Owner: dgregor
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: numeric
  Version: Boost 1.58.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 The attached code does not compile with clang++ 3.6, 3.7svn, Xcode's
 clang++, or g++ 4.9. I get these errors:
 {{{
> /usr/bin/clang++ -DNDEBUG -o broken_shallow_array_adaptor
 broken_shallow_array_adaptor.cpp -I /opt/local/include
 In file included from broken_shallow_array_adaptor.cpp:2:
 In file included from
 /opt/local/include/boost/numeric/ublas/matrix.hpp:18:
 In file included from
 /opt/local/include/boost/numeric/ublas/vector.hpp:21:
 /opt/local/include/boost/numeric/ublas/storage.hpp:781:9: error: expected
 member name or ';'
       after declaration specifiers
         template <size_t N>
         ^
 /opt/local/include/boost/numeric/ublas/storage.hpp:901:9: error: unknown
 type name
       'const_iterator'
         const_iterator begin () const {
         ^
 /opt/local/include/boost/numeric/ublas/storage.hpp:905:9: error: unknown
 type name
       'const_iterator'
         const_iterator cbegin () const {
         ^
 /opt/local/include/boost/numeric/ublas/storage.hpp:909:9: error: unknown
 type name
       'const_iterator'
         const_iterator end () const {
         ^
 /opt/local/include/boost/numeric/ublas/storage.hpp:913:9: error: unknown
 type name
       'const_iterator'
         const_iterator cend () const {
         ^
 /opt/local/include/boost/numeric/ublas/storage.hpp:929:39: error: use of
 undeclared identifier
       'const_iterator'
         typedef std::reverse_iterator<const_iterator>
 const_reverse_iterator;
                                       ^
 In file included from broken_shallow_array_adaptor.cpp:2:
 In file included from
 /opt/local/include/boost/numeric/ublas/matrix.hpp:18:
 /opt/local/include/boost/numeric/ublas/vector.hpp:477:27: error: no type
 named 'const_iterator'
       in 'boost::numeric::ublas::shallow_array_adaptor<const double>'
              typedef typename A::const_iterator const_subiterator_type;
                      ~~~~~~~~~~~~^~~~~~~~~~~~~~
 broken_shallow_array_adaptor.cpp:11:58: note: in instantiation of template
 class
       'boost::numeric::ublas::vector<double,
 boost::numeric::ublas::shallow_array_adaptor<const
       double> >' requested here
     vector<double, shallow_array_adaptor<const double> > tmp2(10, tmp1);
                                                          ^
 7 errors generated.
 }}}

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