Hello,

I have a question regarding the warning that I get when I compile a program using boost::ublas library. I have to say that I'm not really experienced programmer so I might be doing something really stupid...

Anyway, I'm using WinXP with Mingw 3.4.5 and boost 1.34-1.

I want to create a simple function that returns a vector. I have it written like this:

################################################################

> ====== file.h ====== <
#include <boost/numeric/ublas/vector.hpp>
typedef boost::numeric::ublas::vector<double> vec;


vec testfunc (vec &v);

> ====== file.cpp ====== <
#include "file.h"

vec testfunc (vec &v)
{
    vec v1 = v/2;
    return v1;
}

####################################################################

When I try to compile, I get the following warning:

base class `class boost::numeric::ublas::storage_array<boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >' should be explicitly initialized in the copy constructor

How can I get rid of this warning?

Thank you very much for your answers.