diff --git a/dune/xt/la/container/vector-interface.hh b/dune/xt/la/container/vector-interface.hh index 9bb0899e4dba5baeb98c580f03d6ee62e55bdbe5..bb553babe7205552699a45c894aa0e88d5ae9cf1 100644 --- a/dune/xt/la/container/vector-interface.hh +++ b/dune/xt/la/container/vector-interface.hh @@ -373,7 +373,7 @@ public: * \param alpha The scalar. * \return The scaled copy of this. */ - virtual derived_type operator*(const ScalarType& alpha) + virtual derived_type operator*(const ScalarType& alpha) const { derived_type ret = this->copy(); ret *= alpha; @@ -386,7 +386,7 @@ public: * \return The scalar product. * \see dot() */ - virtual ScalarType operator*(const derived_type& other) + virtual ScalarType operator*(const derived_type& other) const { return dot(other); }