Hi,
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 (gcc 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:
===> Definition (file.h )
===> Implementation (file.cpp)Code:#include <boost/numeric/ublas/vector.hpp> typedef boost::numeric::ublas::vector<double> vec; vec testfunc (vec &v);
Code:#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::numeri c::ublas::unbounded_array<double, std::allocator<double> > >' should be explicitly initialized in the copy constructor
What am I doing wrong and how can I fix this? The program works, but I'd like to get rid of the warning
Thank you very much for your answers.



LinkBack URL
About LinkBacks




CornedBee