Commit 3952addd76031372deaf7bf3c7fef1d7ff92545d
1 parent
9376400d
Using C++14 like syntax
Showing
1 changed file
with
3 additions
and
3 deletions
include/CLI.hpp
| @@ -43,11 +43,11 @@ namespace detail { | @@ -43,11 +43,11 @@ namespace detail { | ||
| 43 | constexpr detail::enabler dummy = {}; | 43 | constexpr detail::enabler dummy = {}; |
| 44 | 44 | ||
| 45 | // Copied from C++14 | 45 | // Copied from C++14 |
| 46 | -// template< bool B, class T = void > | ||
| 47 | -// using enable_if_t = typename std::enable_if<B,T>::type; | 46 | +template< bool B, class T = void > |
| 47 | +using enable_if_t = typename std::enable_if<B,T>::type; | ||
| 48 | 48 | ||
| 49 | template <bool Condition> | 49 | template <bool Condition> |
| 50 | -using EnableIf = typename std::enable_if<Condition, detail::enabler>::type; | 50 | +using EnableIf = enable_if_t<Condition, detail::enabler>; |
| 51 | 51 | ||
| 52 | struct Combiner { | 52 | struct Combiner { |
| 53 | int num; | 53 | int num; |