|
Ublas : |
Subject: [ublas] difference_type not declared in this scope
From: T J (tjhnson_at_[hidden])
Date: 2008-11-03 03:16:25
I'm running into some errors in vector_expression.hpp when I define
BOOST_UBLAS_USE_ITERATING.
In file included from /usr/include/boost/numeric/ublas/vector.hpp:17,
from src/cpp/pyublas/numpy.hpp:31,
from src/wrapper/converters.cpp:16:
/usr/include/boost/numeric/ublas/vector_expression.hpp: In member
function 'typename F::result_type
boost::numeric::ublas::vector_scalar_unary<E,
F>::evaluate(boost::numeric::ublas::dense_random_access_iterator_tag)
const':
/usr/include/boost/numeric/ublas/vector_expression.hpp:1456: error:
'difference_type' was not declared in this scope
/usr/include/boost/numeric/ublas/vector_expression.hpp:1456: error:
expected `;' before 'size'
/usr/include/boost/numeric/ublas/vector_expression.hpp:1457: error:
'size' was not declared in this scope
/usr/include/boost/numeric/ublas/vector_expression.hpp: In member
function 'typename F::result_type
boost::numeric::ublas::vector_scalar_binary<E1, E2,
F>::evaluate(boost::numeric::ublas::dense_random_access_iterator_tag)
const':
/usr/include/boost/numeric/ublas/vector_expression.hpp:1592: error:
'difference_type' was not declared in this scope
/usr/include/boost/numeric/ublas/vector_expression.hpp:1592: error:
expected `;' before 'size'
/usr/include/boost/numeric/ublas/vector_expression.hpp:1593: error:
'size' was not declared in this scope
error: command 'gcc' failed with exit status 1
This is boost 1.35 from Ubuntu 8.10. My interpretation is that the
problem is not with the src/* code but with vector_expression.hpp. Is
that correct? If so, how can I have BOOST_UBLAS_USE_ITERATING defined
and avoid this error?