diff --git a/include/argparse.hpp b/include/argparse.hpp index 96d30e8..67783ad 100644 --- a/include/argparse.hpp +++ b/include/argparse.hpp @@ -46,8 +46,7 @@ SOFTWARE. namespace argparse { -namespace { // anonymous namespace for helper methods - not visible outside this - // header file +namespace details { // namespace for helper methods template struct is_container_helper {}; @@ -208,7 +207,7 @@ public: * @throws std::logic_error in case of incompatible types */ template - std::enable_if_t, bool> operator==(const T &aRhs) const { + std::enable_if_t, bool> operator==(const T &aRhs) const { return get() == aRhs; } @@ -217,7 +216,7 @@ public: * @throws std::logic_error in case of incompatible types */ template - std::enable_if_t, bool> operator==(const T &aRhs) const { + std::enable_if_t, bool> operator==(const T &aRhs) const { using ValueType = typename T::value_type; auto tLhs = get(); if (tLhs.size() != aRhs.size()) @@ -264,7 +263,7 @@ private: * Getter for template non-container types * @throws std::logic_error in case of incompatible types */ - template enable_if_not_container get() const { + template details::enable_if_not_container get() const { if (!mValues.empty()) { return std::any_cast(mValues.front()); } @@ -278,7 +277,7 @@ private: * Getter for container types * @throws std::logic_error in case of incompatible types */ - template enable_if_container get() const { + template details::enable_if_container get() const { using ValueType = typename CONTAINER::value_type; CONTAINER tResult; if (!mValues.empty()) {