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()) {