mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 15:14:39 +00:00
Fix std::string_view being identified as a container
This commit is contained in:
parent
ed2953aa3d
commit
04faefeae3
@ -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