give IntegralConstant an "operator value_type" and "value_type operator()"

master
Daniel Kolesa 2015-04-18 18:32:25 +01:00
parent cdc63eaf63
commit 2e750f6874
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ namespace octa {
typedef T value_type;
typedef IntegralConstant<T, val> type;
constexpr operator value_type() const { return value; }
constexpr value_type operator()() const { return value; }
};
typedef IntegralConstant<bool, true> true_t;