added support for std::basic_string_view<uint8_t> binding by adding uint8_t in the set of types validated by is_std_char_type

This commit is contained in:
Guillaume Giraud 2021-05-25 21:28:38 -05:00
parent f61855b9d8
commit 1083c2b9c7

View File

@ -107,6 +107,7 @@ public:
template <typename CharT> using is_std_char_type = any_of<
std::is_same<CharT, char>, /* std::string */
std::is_same<CharT, uint8_t>, /* std::basic_string<uint8_t> and std::basic_string_view<uint8_t> */
#if defined(PYBIND11_HAS_U8STRING)
std::is_same<CharT, char8_t>, /* std::u8string */
#endif