Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-01-30 05:50:59


Am Dienstag, 30. Januar 2007 11:29 schrieb Peter Melchior:
> Hello everybody,
>
> I'm trying to use vector expressions for atlas methods.
> I did a fresh checkout of the sandbox and tried to compile the
> example
>
> >from the atlas bindings documentation:
>

> Error: vector_expression() is private

The default constructor of vector_expression is private, because it is
not allowed to directly instantiate a vector_expression. This means one
cannot have functions like:

template < class V>
foo(const vector_expression<V> v);

but one has to use

template < class V>
foo(const vector_expression<V> & v); // note the reference!

maybe there are some mistakes of such type in the atlas bindings.

Can you check this?
(Sorry, I don't have the sources here)

mfg
Gunter