mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Merge pull request #229 from marzer/fix-sv-is-container
Fix std::string_view being identified as a container
This commit is contained in:
commit
6960571156
@ -63,6 +63,8 @@ struct HasContainerTraits : std::false_type {};
|
|||||||
|
|
||||||
template <> struct HasContainerTraits<std::string> : std::false_type {};
|
template <> struct HasContainerTraits<std::string> : std::false_type {};
|
||||||
|
|
||||||
|
template <> struct HasContainerTraits<std::string_view> : std::false_type {};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct HasContainerTraits<
|
struct HasContainerTraits<
|
||||||
T, std::void_t<typename T::value_type, decltype(std::declval<T>().begin()),
|
T, std::void_t<typename T::value_type, decltype(std::declval<T>().begin()),
|
||||||
|
Loading…
Reference in New Issue
Block a user