Opened 7 years ago
#11976 new Bugs
compile error when BOOST_UBLAS_SCALED_NORM is defined
Reported by: | Owned by: | Gunter | |
---|---|---|---|
Milestone: | To Be Determined | Component: | uBLAS |
Version: | Boost 1.60.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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.
Wrong:
size_type size(e().size()); for (size_type i = 0; i < size; ++i) {
Correct:
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.
Note:
See TracTickets
for help on using tickets.