Boost logo

Ublas :

From: dvir schirman (dvir.boost_at_[hidden])
Date: 2006-05-23 06:12:46


Hi

How can I declare a vector at the header of a class?
I tried to write in a header file:

ublas::vector<float> cov(3);

but I got the following error:

simple_env.H:25: error: expected identifier before numeric constant
simple_env.H:25: error: expected `,' or `...' before numeric constant
simple_env.H:25: error: ISO C++ forbids declaration of `parameter' with no
type

I am using Cygwin platform, and using g++ as my compiler.

Thanks

Dvir