From b0f7f8b0f3017d5c7b84225ff3d62dea348333e7 Mon Sep 17 00:00:00 2001 From: Hans-Christian Ebke Date: Wed, 18 Nov 2015 15:52:20 +0100 Subject: [PATCH] Fixed VectorT::operator| and operator>>. --- src/OpenMesh/Core/Geometry/Vector11T.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/OpenMesh/Core/Geometry/Vector11T.hh b/src/OpenMesh/Core/Geometry/Vector11T.hh index 6c60166f..8df3fafe 100644 --- a/src/OpenMesh/Core/Geometry/Vector11T.hh +++ b/src/OpenMesh/Core/Geometry/Vector11T.hh @@ -357,8 +357,7 @@ class VectorT { template() * std::declval())> - typename std::enable_if::type - operator|(const VectorT& _rhs) const { + ResultScalar operator|(const VectorT& _rhs) const { ResultScalar p = values_[0] * _rhs[0]; for (int i = 1; i < DIM; ++i) { p += values_[i] * _rhs[i]; @@ -603,7 +602,7 @@ operator<<(std::ostream& os, const VectorT &_vec) { /// read the space-separated components of a vector from a stream template typename std::enable_if() >> + std::declval() >> std::declval())) >= 0, std::istream&>::type operator>> (std::istream& is, VectorT &_vec) { for (int i = 0; i < DIM; ++i)