[Lemon-commits] [lemon_svn] deba: r2741 - hugo/trunk/lemon/bits

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:54:53 CET 2006


Author: deba
Date: Fri May 12 11:54:58 2006
New Revision: 2741

Modified:
   hugo/trunk/lemon/bits/utility.h

Log:
Revised Compile Time Arithmetic




Modified: hugo/trunk/lemon/bits/utility.h
==============================================================================
--- hugo/trunk/lemon/bits/utility.h	(original)
+++ hugo/trunk/lemon/bits/utility.h	Fri May 12 11:54:58 2006
@@ -106,18 +106,10 @@
     static const bool value = true;
   };
 
-  template <bool sless, bool sequal, bool bless>
-  struct CTLessImpl {
-   static const bool value =
-   CTOr<sless, CTAnd<sequal, bless>::value>::value;
-  };
 
   template <int left, int right>
   struct CTLess {
-    static const bool value = 
-    CTLessImpl<CTLess<left >> 1, right >> 1>::value, 
-               CTEqual<left >> 1, right >> 1>::value,
-               CTLess<left & 1, right & 1>::value >::value;
+    static const bool value = left < right;
   };
 
   template <int left>



More information about the Lemon-commits mailing list