Skip to content
Snippets Groups Projects
Commit a4965d42 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[container.vector] mark two operator* as const

parent 77d29ed7
No related branches found
No related tags found
No related merge requests found
...@@ -373,7 +373,7 @@ public: ...@@ -373,7 +373,7 @@ public:
* \param alpha The scalar. * \param alpha The scalar.
* \return The scaled copy of this. * \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(); derived_type ret = this->copy();
ret *= alpha; ret *= alpha;
...@@ -386,7 +386,7 @@ public: ...@@ -386,7 +386,7 @@ public:
* \return The scalar product. * \return The scalar product.
* \see dot() * \see dot()
*/ */
virtual ScalarType operator*(const derived_type& other) virtual ScalarType operator*(const derived_type& other) const
{ {
return dot(other); return dot(other);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment