mirror of
https://github.com/pybind/pybind11.git
synced 2024-12-01 09:27:12 +00:00
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:
parent
f61855b9d8
commit
1083c2b9c7
@ -107,6 +107,7 @@ public:
|
|||||||
|
|
||||||
template <typename CharT> using is_std_char_type = any_of<
|
template <typename CharT> using is_std_char_type = any_of<
|
||||||
std::is_same<CharT, char>, /* std::string */
|
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)
|
#if defined(PYBIND11_HAS_U8STRING)
|
||||||
std::is_same<CharT, char8_t>, /* std::u8string */
|
std::is_same<CharT, char8_t>, /* std::u8string */
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user