# HG changeset patch # User deba # Date 1147427698 0 # Node ID 123f08422c14a080c2be0258e0828da81cb10b60 # Parent d687c0033bb545c7f44c21af07511bc3efe1dd78 Revised Compile Time Arithmetic diff -r d687c0033bb5 -r 123f08422c14 lemon/bits/utility.h --- a/lemon/bits/utility.h Fri May 12 09:52:28 2006 +0000 +++ b/lemon/bits/utility.h Fri May 12 09:54:58 2006 +0000 @@ -106,18 +106,10 @@ static const bool value = true; }; - template - struct CTLessImpl { - static const bool value = - CTOr::value>::value; - }; template struct CTLess { - static const bool value = - CTLessImpl> 1, right >> 1>::value, - CTEqual> 1, right >> 1>::value, - CTLess::value >::value; + static const bool value = left < right; }; template