From 2dc9121acffc3448f5caa65f1d84126f17814b22 Mon Sep 17 00:00:00 2001 From: Stephan van Veen Date: Thu, 9 May 2019 18:24:30 +0200 Subject: [PATCH] Simplify type traits --- include/argparse.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/argparse.hpp b/include/argparse.hpp index bdd7b4a..5567a23 100644 --- a/include/argparse.hpp +++ b/include/argparse.hpp @@ -126,8 +126,8 @@ public: // Entry point for template types other than std::vector and std::list template - typename std::enable_if::value == false && - is_specialization::value == false, bool>::type + typename std::enable_if::value && + !is_specialization::value, bool>::type operator==(const T& aRhs) const { return get() == aRhs; } @@ -354,8 +354,8 @@ class ArgumentParser { // Getter enabled for all template types other than std::vector and std::list template - typename std::enable_if::value == false && - is_specialization::value == false, T>::type + typename std::enable_if::value && + !is_specialization::value, T>::type get(const char * aArgumentName) { auto tIterator = mArgumentMap.find(aArgumentName); if (tIterator != mArgumentMap.end()) {