Subject: [Boost-bugs] [Boost C++ Libraries] #11976: compile error when BOOST_UBLAS_SCALED_NORM is defined
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-11 02:30:18
#11976: compile error when BOOST_UBLAS_SCALED_NORM is defined
-----------------------------------+---------------------
Reporter: lebre <junonon0077@â¦> | Owner: guwi17
Type: Bugs | Status: new
Milestone: To Be Determined | Component: uBLAS
Version: Boost 1.60.0 | Severity: Problem
Keywords: |
-----------------------------------+---------------------
When **BOOST_UBLAS_SCALED_NORM** is defined, compiler says the following
message.
boost-1.60.0/include/boost/numeric/ublas/functional.hpp:448:13: error:
'**size_type**' was not declared in this scope.
I show wrong and correct code (I suppose) as bellow.
{{{#!div style="font-size: 90%"
Wrong:
{{{#!c++
size_type size(e().size());
for (size_type i = 0; i < size; ++i) {
}}}
}}}
{{{#!div style="font-size: 90%"
Correct:
{{{#!c++
typedef typename E::size_type vector_size_type;
vector_size_type size(e().size());
for (vector_size_type i = 0; i < size; ++i) {
}}}
}}}
From what I've seen so far, this is not fixed in version 1.35.0 ~ 1.60.0.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11976> 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