add missing include and is_double function

This commit is contained in:
Max Lyon
2020-02-05 22:14:27 +01:00
parent 63dd997489
commit 0e8c46ab84
3 changed files with 18 additions and 0 deletions

View File

@@ -246,6 +246,16 @@ namespace OMFormat {
}
//-----------------------------------------------------------------------------
template<>
bool is_double<double>(const double&)
{
return true;
}
} // namespace OMFormat
// --------------------------------------------------------------------------

View File

@@ -350,6 +350,13 @@ namespace OMFormat {
#endif
}
template <typename T> bool is_double(const T&)
{
return false;
}
template <> bool is_double<double>(const double&);
template <typename T> bool is_integer(const T)
{
#if defined(OM_MISSING_HEADER_LIMITS)

View File

@@ -65,6 +65,7 @@
#include <OpenMesh/Core/Utils/vector_cast.hh>
#include <OpenMesh/Core/Utils/color_cast.hh>
#include <OpenMesh/Core/IO/exporter/BaseExporter.hh>
#include <OpenMesh/Core/IO/OMFormat.hh>
//=== NAMESPACES ==============================================================