We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cde5c11 commit d5c4386Copy full SHA for d5c4386
include/pybind11/cast.h
@@ -1505,11 +1505,11 @@ void check_for_holder_mismatch_impl() {
1505
#ifdef NDEBUG
1506
pybind11_fail("Mismatched holders detected (compile in debug mode for details)");
1507
#else
1508
- std::string seen_holder_name(base_info->holder_type->name());
1509
- detail::clean_type_id(seen_holder_name);
+ std::string holder_name(base_info->holder_type->name());
+ detail::clean_type_id(holder_name);
1510
pybind11_fail("Mismatched holders detected: "
1511
" attempting to use holder type " + type_id<iholder>() + ", but " + type_id<base_type>() +
1512
- " was already seen using holder type " + seen_holder_name);
+ " was declared using holder type " + holder_name);
1513
#endif
1514
}
1515
0 commit comments