20 Dec
2018
20 Dec
'18
7:48 p.m.
Matt Pulver wrote:
For example, the following will not compile with pre-17 compilers if `constexpr` is dropped:
template
constexpr size_t dimension ::depth() { if constexpr (is_dimension<RealType>::value) return 1 + RealType::depth(); else return 1; }
This specific case isn't hard to support either, although whether you would
want to invest the effort is up to you.
template