Skip to content
Snippets Groups Projects
Commit dc7508a2 authored by Thimo Neubauer's avatar Thimo Neubauer
Browse files

simplified and fixed greater_or_equal template

[[Imported from SVN: r2421]]
parent 6c4c8552
Branches
Tags
No related merge requests found
......@@ -114,17 +114,7 @@ namespace Dune {
*/
template <DebugLevel current, DebugLevel threshold>
struct greater_or_equal {
static const bool value = greater_or_equal<current-1, threshold>::value;
};
template < DebugLevel threshold >
struct greater_or_equal<0, threshold> {
static const bool value = false;
};
template < DebugLevel threshold >
struct greater_or_equal<threshold, threshold> {
static const bool value = true;
static const bool value = (current >= threshold);
};
/*! data component value is true if template parameter is non-zero
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment