@@ -1796,16 +1796,16 @@ PYBIND11_NAMESPACE_BEGIN(detail)
17961796template <typename T, enable_if_t<!is_pyobject<T>::value, int>>
17971797object object_or_cast(T &&o) { return pybind11::cast (std::forward<T>(o)); }
17981798
1799- struct overload_unused {}; // Placeholder type for the unneeded (and dead code) static variable in the OVERLOAD_INT macro
1800- template <typename ret_type> using overload_caster_t = conditional_t <
1801- cast_is_temporary_value_reference<ret_type>::value, make_caster<ret_type>, overload_unused >;
1799+ struct override_unused {}; // Placeholder type for the unneeded (and dead code) static variable in the PYBIND11_OVERRIDE_OVERRIDE macro
1800+ template <typename ret_type> using override_caster_t = conditional_t <
1801+ cast_is_temporary_value_reference<ret_type>::value, make_caster<ret_type>, override_unused >;
18021802
18031803// Trampoline use: for reference/pointer types to value-converted values, we do a value cast, then
18041804// store the result in the given variable. For other types, this is a no-op.
18051805template <typename T> enable_if_t <cast_is_temporary_value_reference<T>::value, T> cast_ref (object &&o, make_caster<T> &caster) {
18061806 return cast_op<T>(load_type (caster, o));
18071807}
1808- template <typename T> enable_if_t <!cast_is_temporary_value_reference<T>::value, T> cast_ref (object &&, overload_unused &) {
1808+ template <typename T> enable_if_t <!cast_is_temporary_value_reference<T>::value, T> cast_ref (object &&, override_unused &) {
18091809 pybind11_fail (" Internal error: cast_ref fallback invoked" ); }
18101810
18111811// Trampoline use: Having a pybind11::cast with an invalid reference type is going to static_assert, even
@@ -2204,7 +2204,7 @@ PYBIND11_NAMESPACE_END(detail)
22042204 }}
22052205
22062206// / Lets you pass a type containing a `,` through a macro parameter without needing a separate
2207- // / typedef, e.g.: `PYBIND11_OVERLOAD (PYBIND11_TYPE(ReturnType<A, B>), PYBIND11_TYPE(Parent<C, D>), f, arg)`
2207+ // / typedef, e.g.: `PYBIND11_OVERRIDE (PYBIND11_TYPE(ReturnType<A, B>), PYBIND11_TYPE(Parent<C, D>), f, arg)`
22082208#define PYBIND11_TYPE (...) __VA_ARGS__
22092209
22102210PYBIND11_NAMESPACE_END (PYBIND11_NAMESPACE)
0 commit comments