Boost logo

Ublas :

Subject: [ublas] using intervals.
From: Joaquim Duran (jduran.gm_at_[hidden])
Date: 2014-11-01 20:10:02


Hello,

Today I've compiled the bench5 using bjam which has been finished with
an error. This was caused because BOOST_UBLAS_USE_INTERVAL was defined
in bench5 bjam file (I didn't defined it in qmake build system). I've
fixed the compilation error by applying the attached patch.

Could BOOST_UBLAS_USE_INTERVAL be defined?

The message of the error was:

[qduran_at_localhost bench5]$ /home/qduran/devel/modular-boost-warning-test/b2
Performing configuration checks

    - symlinks supported : yes (cached)
...patience...
...found 1772 targets...
...updating 2 targets...
gcc.compile.c++
../../../../../bin.v2/libs/numeric/ublas/benchmarks/bench5/gcc-4.8.3/debug/assignment_bench.o
In file included from
../../../../../boost/numeric/ublas/expression_types.hpp:15:0,
                 from
../../../../../boost/numeric/ublas/vector_expression.hpp:16,
                 from ../../../../../boost/numeric/ublas/assignment.hpp:11,
                 from assignment_bench.cpp:9:
../../../../../boost/numeric/ublas/traits.hpp:383:24: error:
‘interval’ is not a member of ‘boost::numeric’
     struct type_traits<boost::numeric::interval<float> > :
scalar_traits<boost::numeric::interval<float> > {
                        ^
../../../../../boost/numeric/ublas/traits.hpp:383:24: error:
‘interval’ is not a member of ‘boost::numeric’
../../../../../boost/numeric/ublas/traits.hpp:383:54: error: template
argument 1 is invalid
     struct type_traits<boost::numeric::interval<float> > :
scalar_traits<boost::numeric::interval<float> > {
                                                      ^
../../../../../boost/numeric/ublas/traits.hpp:383:56: error: expected
unqualified-id before ‘>’ token
     struct type_traits<boost::numeric::interval<float> > :
scalar_traits<boost::numeric::interval<float> > {
                                                        ^
../../../../../boost/numeric/ublas/traits.hpp:393:24: error:
‘interval’ is not a member of ‘boost::numeric’
     struct type_traits<boost::numeric::interval<double> > :
scalar_traits<boost::numeric::interval<double> > {
                        ^
[...]

Joaquim Duran