From 784adb97449615a11cd8ca451c68448372d59453 Mon Sep 17 00:00:00 2001 From: Hans-Christian Ebke Date: Thu, 19 Nov 2015 14:08:42 +0100 Subject: [PATCH] C++11: Made VectorT::size() and VectorT::dim() constexpr. --- src/OpenMesh/Core/Geometry/Vector11T.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenMesh/Core/Geometry/Vector11T.hh b/src/OpenMesh/Core/Geometry/Vector11T.hh index 1a5fcf23..796a9e9b 100644 --- a/src/OpenMesh/Core/Geometry/Vector11T.hh +++ b/src/OpenMesh/Core/Geometry/Vector11T.hh @@ -95,12 +95,12 @@ class VectorT { typedef VectorT vector_type; /// returns dimension of the vector (deprecated) - static inline int dim() { + static constexpr int dim() { return DIM; } /// returns dimension of the vector - static inline size_t size() { + static constexpr size_t size() { return DIM; }