File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -459,7 +459,8 @@ struct type_caster<absl::Span<T>> {
459
459
return *this ;
460
460
}
461
461
462
- static constexpr auto name = _(" Span[" ) + make_caster<T>::name + _(" ]" );
462
+ static constexpr auto name =
463
+ const_name (" Span[" ) + make_caster<T>::name + const_name(" ]" );
463
464
464
465
// We do not allow moving because 1) spans are super lightweight, so there's
465
466
// no advantage to moving and 2) the span cannot exist without the caster,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ struct type_caster<google::NoThrowStatus<StatusType>> {
52
52
template <>
53
53
struct type_caster <absl::Status> : public type_caster_base<absl::Status> {
54
54
public:
55
- static constexpr auto name = _ (" None" );
55
+ static constexpr auto name = const_name (" None" );
56
56
// Convert C++ -> Python.
57
57
static handle cast (const absl::Status* src, return_value_policy policy,
58
58
handle parent, bool throw_exception = true ) {
Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ namespace detail {
20
20
template <typename PayloadType>
21
21
struct NoThrowStatusType <absl::StatusOr<PayloadType>> {
22
22
using NoThrowAbslStatus = type_caster_base<absl::Status>;
23
- static constexpr auto name = _(" Union[" ) + NoThrowAbslStatus::name + _(" , " ) +
24
- make_caster<PayloadType>::name + _(" ]" );
23
+ static constexpr auto name = const_name(" Union[" ) + NoThrowAbslStatus::name +
24
+ const_name (" , " ) +
25
+ make_caster<PayloadType>::name + const_name(" ]" );
25
26
};
26
27
27
28
// Convert absl::StatusOr<T>.
You can’t perform that action at this time.
0 commit comments