Boost logo

Boost Users :

From: J. Scott Pendergrass (scott.pendergrass_at_[hidden])
Date: 2003-10-24 14:42:25


All:

I'm using Boost v1.30.2, Windows XP Pro, MS Visual C++ v7.1. I get a compilation error when I try to do something like this:

typedef ublas::vector<double> Vector;
Vector a(3);
Vector c(3);
a[0] = 1.0;
a[1] = 2.0;
a[2] = 3.0;
c = a * 100.0;          // trouble maker

The compilation errors are:

d:\boost\boost-1.30.2\boost\numeric\ublas\vector_expression.hpp(1399): error C2825: 'boost::numeric::ublas::vector_binary_scalar2<E1,E2,F>::const_iterator2_type::iterator_category': cannot form a qualified name
        with
        [
            E1=boost::numeric::ublas::vector<double>,
            E2=boost::numeric::ublas::scalar_const_reference<double>,
            F=boost::numeric::ublas::scalar_multiplies<double,double>
        ]
d:\boost\boost-1.30.2\boost\numeric\ublas\vector_expression.hpp(1399): error C2039: 'iterator_category' : is not a member of 'operator``global namespace'''
d:\boost\boost-1.30.2\boost\numeric\ublas\vector_expression.hpp(1399): error C2146: syntax error : missing ',' before identifier 'iterator_category'

I can perform other matrix and vector operations. I just get errors when I try to do scalar multiplies and divides.

Thanks in advance,
Scott

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net