Changeset 1696:4e03a355d2ea in lemon-0.x for lemon/utility.h
- Timestamp:
- 10/03/05 12:16:45 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2222
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/utility.h
r1630 r1696 65 65 ///\e 66 66 static const bool value = false; 67 }; 68 69 template <bool left, bool right> 70 struct _CompileTimeAnd { 71 static const bool value = false; 72 }; 73 74 template <> 75 struct _CompileTimeAnd<true, true> { 76 static const bool value = true; 77 }; 78 79 template <typename Left, typename Right> 80 struct CompileTimeAnd { 81 static const bool value = 82 _CompileTimeAnd<Left::value, Right::value>::value; 67 83 }; 68 84
Note: See TracChangeset
for help on using the changeset viewer.