Skip to content

Commit c43713f

Browse files
committed
add "handle_type_name<object>"
1 parent 3aa8472 commit c43713f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/pybind11/cast.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,10 @@ struct handle_type_name {
876876
static constexpr auto name = const_name<T>();
877877
};
878878
template <>
879+
struct handle_type_name<object> {
880+
static constexpr auto name = const_name("object");
881+
};
882+
template <>
879883
struct handle_type_name<bool_> {
880884
static constexpr auto name = const_name("bool");
881885
};

0 commit comments

Comments
 (0)