From 919c635f63af56ef2341740983accc6b6ef666cf Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 25 Oct 2016 19:57:37 +1100 Subject: [PATCH] coord/base: assert we are using arithmetic types --- coord/base.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coord/base.hpp b/coord/base.hpp index 41585b8e..4f8bd4c1 100644 --- a/coord/base.hpp +++ b/coord/base.hpp @@ -22,6 +22,7 @@ #include #include +#include namespace util { namespace coord { ///////////////////////////////////////////////////////////////////////// @@ -32,7 +33,8 @@ namespace util { namespace coord { typename ...tags > struct base : public init { - static_assert (S > 0, "coord dimensions must be strictly positive"); + static_assert (S > 0); + static_assert (std::is_arithmetic::value); using value_type = T; static constexpr size_t dimension = S;