maths: use structured assertions in imit

This commit is contained in:
Danny Robson 2016-04-19 14:49:17 +10:00
parent 335703b147
commit 3a6faca98f

View File

@ -486,7 +486,7 @@ namespace util {
constexpr T
limit (const T val, const U lo, const V hi)
{
lo <= hi ? (void)0 : panic ();
CHECK_LE (lo, hi);
return val > hi ? hi:
val < lo ? lo: