Boost logo

Ublas :

From: Ramsay, Erik GOSS (Erik.Ramsay_at_[hidden])
Date: 2006-02-15 13:52:05

I have the following test function:
void Test()


    boost::numeric::ublas::matrix<double> NewJ(32,32);

    boost::numeric::ublas::matrix<double>::iterator1 itrNewJColumn =



I would like access different columns of "NewJ" through the use of
column iterators. However, when I try to compile this code, I get a
compile error:

include\boost\numeric\ublas\iterator.hpp(1619) : error C2679: binary '+'
: no operator found which takes a right-hand operand of type
'boost::numeric::ublas::indexed_iterator1<C,IC>::difference_type' (or
there is no acceptable conversion)

What am I doing wrong or what am I missing.

I'm compiling with the VC7 compiler. I'm using version 1.32 of Boost.

Thanks for any help.