diff --git a/dune/stuff/common/vector.hh b/dune/stuff/common/vector.hh index 1cd4297ca7e16df3678c762aa7d3288c4cd9dc56..d16359b003ba5e09283b0c1b631455f5caa0f38f 100644 --- a/dune/stuff/common/vector.hh +++ b/dune/stuff/common/vector.hh @@ -29,10 +29,10 @@ inline void DUNE_DEPRECATED_MSG("Use *= 0 instead!") clear(Dune::DenseVector<Vec vector *= typename Dune::DenseVector<VectorImp>::value_type(0); } -template <class T> -inline void DUNE_DEPRECATED_MSG("Use *= 0 instead!") clear(LA::VectorInterface<T>& vector) +template <class T, class S = double> +inline void DUNE_DEPRECATED_MSG("Use *= 0 instead!") clear(LA::VectorInterface<T, S>& vector) { - vector *= typename LA::VectorInterface<T>::ScalarType(0); + vector *= typename LA::VectorInterface<T, S>::ScalarType(0); }