Skip to content

Commit

Permalink
remove empty tuple[()]
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Jun 30, 2024
1 parent bbd574a commit 6e5df0f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/pybind11/cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -740,13 +740,6 @@ class type_caster<std::pair<T1, T2>> : public tuple_caster<std::pair, T1, T2> {}
template <typename... Ts>
class type_caster<std::tuple<Ts...>> : public tuple_caster<std::tuple, Ts...> {};

template <>
class type_caster<std::tuple<>> : public tuple_caster<std::tuple> {
public:
// PEP 484 specifies this syntax for an empty tuple
static constexpr auto name = const_name("tuple[()]");
};

/// Helper class which abstracts away certain actions. Users can provide specializations for
/// custom holders, but it's only necessary if the type has a non-standard interface.
template <typename T>
Expand Down

0 comments on commit 6e5df0f

Please sign in to comment.