diff --git a/src/OpenMesh/Core/IO/OMFormat.cc b/src/OpenMesh/Core/IO/OMFormat.cc index 97175088..ffe0ffc6 100644 --- a/src/OpenMesh/Core/IO/OMFormat.cc +++ b/src/OpenMesh/Core/IO/OMFormat.cc @@ -246,6 +246,16 @@ 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 4e041a34..d66f35d2 100644 --- a/src/OpenMesh/Core/IO/OMFormat.hh +++ b/src/OpenMesh/Core/IO/OMFormat.hh @@ -350,6 +350,13 @@ namespace OMFormat { #endif } + template bool is_double(const T&) + { + return false; + } + + template <> bool is_double(const double&); + template bool is_integer(const T) { #if defined(OM_MISSING_HEADER_LIMITS) diff --git a/src/OpenMesh/Core/IO/exporter/ExporterT.hh b/src/OpenMesh/Core/IO/exporter/ExporterT.hh index 02223122..56332061 100644 --- a/src/OpenMesh/Core/IO/exporter/ExporterT.hh +++ b/src/OpenMesh/Core/IO/exporter/ExporterT.hh @@ -65,6 +65,7 @@ #include #include #include +#include //=== NAMESPACES ==============================================================