@@ -1796,16 +1796,16 @@ PYBIND11_NAMESPACE_BEGIN(detail)
1796
1796
template <typename T, enable_if_t<!is_pyobject<T>::value, int>>
1797
1797
object object_or_cast(T &&o) { return pybind11::cast (std::forward<T>(o)); }
1798
1798
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 >;
1802
1802
1803
1803
// Trampoline use: for reference/pointer types to value-converted values, we do a value cast, then
1804
1804
// store the result in the given variable. For other types, this is a no-op.
1805
1805
template <typename T> enable_if_t <cast_is_temporary_value_reference<T>::value, T> cast_ref (object &&o, make_caster<T> &caster) {
1806
1806
return cast_op<T>(load_type (caster, o));
1807
1807
}
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 &) {
1809
1809
pybind11_fail (" Internal error: cast_ref fallback invoked" ); }
1810
1810
1811
1811
// 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)
2204
2204
}}
2205
2205
2206
2206
// / 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)`
2208
2208
#define PYBIND11_TYPE (...) __VA_ARGS__
2209
2209
2210
2210
PYBIND11_NAMESPACE_END (PYBIND11_NAMESPACE)
0 commit comments