mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 15:14:39 +00:00
Don't accept std::string as container
This commit is contained in:
parent
a6ceffdb63
commit
20a7d90abe
@ -58,6 +58,9 @@ struct is_container_helper {};
|
||||
template<typename T, typename _ = void>
|
||||
struct is_container : std::false_type {};
|
||||
|
||||
template<>
|
||||
struct is_container<std::string> : std::false_type {};
|
||||
|
||||
template<typename T>
|
||||
struct is_container<T, std::conditional_t<
|
||||
false, is_container_helper<
|
||||
|
Loading…
Reference in New Issue
Block a user