Changeset 1989:d276e88aa48a in lemon-0.x for lemon/utility.h
- Timestamp:
- 03/01/06 11:04:47 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2591
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/utility.h
r1956 r1989 69 69 }; 70 70 71 template <bool left, bool right> 72 struct _CompileTimeAnd { 73 static const bool value = false; 71 72 class InvalidType { 73 private: 74 InvalidType(); 74 75 }; 75 76 76 template <>77 struct _CompileTimeAnd<true, true> {78 static const bool value = true;79 };80 81 template <typename Left, typename Right>82 struct CompileTimeAnd {83 static const bool value =84 _CompileTimeAnd<Left::value, Right::value>::value;85 };86 77 87 78 template <typename T>
Note: See TracChangeset
for help on using the changeset viewer.