mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 20:53:52 +00:00
Using C++14 like syntax
This commit is contained in:
parent
9376400d74
commit
3952addd76
@ -43,11 +43,11 @@ namespace detail {
|
|||||||
constexpr detail::enabler dummy = {};
|
constexpr detail::enabler dummy = {};
|
||||||
|
|
||||||
// Copied from C++14
|
// Copied from C++14
|
||||||
// template< bool B, class T = void >
|
template< bool B, class T = void >
|
||||||
// using enable_if_t = typename std::enable_if<B,T>::type;
|
using enable_if_t = typename std::enable_if<B,T>::type;
|
||||||
|
|
||||||
template <bool Condition>
|
template <bool Condition>
|
||||||
using EnableIf = typename std::enable_if<Condition, detail::enabler>::type;
|
using EnableIf = enable_if_t<Condition, detail::enabler>;
|
||||||
|
|
||||||
struct Combiner {
|
struct Combiner {
|
||||||
int num;
|
int num;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user