Skip to content

Commit

Permalink
Merge pull request #229 from marzer/fix-sv-is-container
Browse files Browse the repository at this point in the history
Fix std::string_view being identified as a container
  • Loading branch information
p-ranav authored Nov 5, 2022
2 parents 9c830b9 + 04faefe commit 6960571
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/argparse/argparse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ struct HasContainerTraits : std::false_type {};

template <> struct HasContainerTraits<std::string> : std::false_type {};

template <> struct HasContainerTraits<std::string_view> : std::false_type {};

template <typename T>
struct HasContainerTraits<
T, std::void_t<typename T::value_type, decltype(std::declval<T>().begin()),
Expand Down

0 comments on commit 6960571

Please sign in to comment.