diff options
-rw-r--r-- | options/value-traits.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/options/value-traits.hpp b/options/value-traits.hpp index 385983a4..308e110c 100644 --- a/options/value-traits.hpp +++ b/options/value-traits.hpp @@ -84,7 +84,7 @@ inline bool default_value_traits<double>::is_equal(double x, double y) { return std::fabs(x - y) < 1e-6; -}; +} template<> struct value_traits<float, double> : default_value_traits<float> {}; @@ -93,7 +93,7 @@ inline bool default_value_traits<float, double>::is_equal(float x, float y) { return std::fabs(x - y) < 1e-6f; -}; +} template<> inline |