Skip to content

Commit ab59f45

Browse files
authored
Prefer make_caster<T> to type_caster<T> (#3859)
1 parent c4e2952 commit ab59f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/cast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ struct type_caster<std::basic_string_view<CharT, Traits>,
514514
template <typename CharT>
515515
struct type_caster<CharT, enable_if_t<is_std_char_type<CharT>::value>> {
516516
using StringType = std::basic_string<CharT>;
517-
using StringCaster = type_caster<StringType>;
517+
using StringCaster = make_caster<StringType>;
518518
StringCaster str_caster;
519519
bool none = false;
520520
CharT one_char = 0;

0 commit comments

Comments
 (0)