id summary reporter owner description type status milestone component version severity resolution keywords cc 11207 boost::numeric::ublas::shallow_array_adaptor broken when compiling with -DNDEBUG Mark.Moll@… Douglas Gregor "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 ^ /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_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' 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 >' requested here vector > tmp2(10, tmp1); ^ 7 errors generated. }}}" Bugs new To Be Determined numeric Boost 1.58.0 Problem