From 7ee8e6e9f61fa58ca28045d4a43db5d1c4ef1d3b Mon Sep 17 00:00:00 2001 From: Max Lyon Date: Thu, 6 Feb 2020 08:27:47 +0100 Subject: [PATCH] inline is_double specialization --- src/OpenMesh/Core/IO/OMFormat.cc | 7 ------- src/OpenMesh/Core/IO/OMFormat.hh | 5 ++++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/OpenMesh/Core/IO/OMFormat.cc b/src/OpenMesh/Core/IO/OMFormat.cc index ffe0ffc6..abebc177 100644 --- a/src/OpenMesh/Core/IO/OMFormat.cc +++ b/src/OpenMesh/Core/IO/OMFormat.cc @@ -249,13 +249,6 @@ namespace OMFormat { //----------------------------------------------------------------------------- - template<> - bool is_double(const double&) - { - return true; - } - - } // namespace OMFormat // -------------------------------------------------------------------------- diff --git a/src/OpenMesh/Core/IO/OMFormat.hh b/src/OpenMesh/Core/IO/OMFormat.hh index d66f35d2..0bc8e3da 100644 --- a/src/OpenMesh/Core/IO/OMFormat.hh +++ b/src/OpenMesh/Core/IO/OMFormat.hh @@ -355,7 +355,10 @@ namespace OMFormat { return false; } - template <> bool is_double(const double&); + template <> inline bool is_double(const double&) + { + return true; + } template bool is_integer(const T) {