mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-23 07:23:23 +08:00
Prefer make_caster<T> to type_caster<T> (#3859)
This commit is contained in:
parent
c4e295287b
commit
ab59f45d2e
@ -514,7 +514,7 @@ struct type_caster<std::basic_string_view<CharT, Traits>,
|
||||
template <typename CharT>
|
||||
struct type_caster<CharT, enable_if_t<is_std_char_type<CharT>::value>> {
|
||||
using StringType = std::basic_string<CharT>;
|
||||
using StringCaster = type_caster<StringType>;
|
||||
using StringCaster = make_caster<StringType>;
|
||||
StringCaster str_caster;
|
||||
bool none = false;
|
||||
CharT one_char = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user