Commit 0ae5c909 authored by Florian Goth's avatar Florian Goth
Browse files

fix compilation.

parent e15ac061
......@@ -25,6 +25,7 @@ public:
@param e this set the estimation for the standard error of the observable
*/
errordata(const R& m, const R& e) : mean(m), error(e), bias(0) {}
errordata() : mean(), error(), bias() {} ///old legacy code
void set_mean(R mean__)
{
mean=mean__;
......@@ -78,6 +79,7 @@ public:
@param b this set the estimate for the bias
*/
errordata(const std::valarray<Scalar>& m, const std::valarray<Scalar>& e, const std::valarray<Scalar>& b) : mean(m), error(e), bias(b) {}
errordata() : mean(), error(), bias() {}
void set_mean(std::valarray<Scalar> mean_ )
{
mean.resize( mean_.size() );
......
......@@ -77,4 +77,9 @@ struct ToScalar<std::valarray<T> >
typedef typename ToScalar<T>::RetType RetType;
};
template <class T>
struct ToScalar<std::vector<T> >
{
typedef typename ToScalar<T>::RetType RetType;
};
# endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment