From 3802de5ba3c7380db77f7f2104d6c7cdbaa08e03 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 12 May 2016 18:22:55 +1000 Subject: [PATCH] coord/ops: disable scalar ops for non-arithmetic types --- coord/ops.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/coord/ops.hpp b/coord/ops.hpp index ad1a4ea1..0259ff49 100644 --- a/coord/ops.hpp +++ b/coord/ops.hpp @@ -181,7 +181,9 @@ namespace util { typename U, \ template class K, \ typename = std::enable_if_t< \ - is_coord::value, \ + is_coord::value && \ + std::is_arithmetic::value && \ + std::is_arithmetic::value, \ void \ > \ > \ @@ -306,7 +308,11 @@ namespace util { template < size_t S, typename T, - typename U + typename U, + typename = std::enable_if_t< + std::is_arithmetic::value && std::is_arithmetic::value, + void + > > constexpr vector>