1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-30 12:43:52 +00:00

Using C++14 like syntax

This commit is contained in:
Henry Fredrick Schreiner 2017-01-28 22:05:40 -05:00
parent 9376400d74
commit 3952addd76

View File

@ -43,11 +43,11 @@ namespace detail {
constexpr detail::enabler dummy = {};
// Copied from C++14
// template< bool B, class T = void >
// using enable_if_t = typename std::enable_if<B,T>::type;
template< bool B, class T = void >
using enable_if_t = typename std::enable_if<B,T>::type;
template <bool Condition>
using EnableIf = typename std::enable_if<Condition, detail::enabler>::type;
using EnableIf = enable_if_t<Condition, detail::enabler>;
struct Combiner {
int num;