inline is_double specialization

This commit is contained in:
Max Lyon
2020-02-06 08:27:47 +01:00
parent 0e8c46ab84
commit 7ee8e6e9f6
2 changed files with 4 additions and 8 deletions

View File

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

View File

@@ -355,7 +355,10 @@ namespace OMFormat {
return false; return false;
} }
template <> bool is_double<double>(const double&); template <> inline bool is_double(const double&)
{
return true;
}
template <typename T> bool is_integer(const T) template <typename T> bool is_integer(const T)
{ {