# HG changeset patch # User deba # Date 1128334605 0 # Node ID 4e03a355d2eaa82b3e2c9afa379ef4b9ee193450 # Parent e6f99fe1723fd594923665eac4ec07bbed9dc402 CompileTimeAnd Used by SplitGraphAdaptor diff -r e6f99fe1723f -r 4e03a355d2ea lemon/utility.h --- a/lemon/utility.h Mon Oct 03 10:14:49 2005 +0000 +++ b/lemon/utility.h Mon Oct 03 10:16:45 2005 +0000 @@ -66,6 +66,22 @@ static const bool value = false; }; + template + struct _CompileTimeAnd { + static const bool value = false; + }; + + template <> + struct _CompileTimeAnd { + static const bool value = true; + }; + + template + struct CompileTimeAnd { + static const bool value = + _CompileTimeAnd::value; + }; + template struct Wrap { const T &value;