From 4aeacc3a276b09047546982229299871b6c54296 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 29 Oct 2015 10:50:34 +1100 Subject: [PATCH] maths: make limit constexpr friendly --- maths.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maths.hpp b/maths.hpp index 287d328b..9a15aae8 100644 --- a/maths.hpp +++ b/maths.hpp @@ -353,7 +353,7 @@ template constexpr T limit [[gnu::pure]] (const T val, const U lo, const V hi) { - CHECK_LE (lo, hi); + lo > hi ? (void)0 : panic (); return val > hi ? hi: val < lo ? lo: