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 1f8b4a7 commit 14cde21Copy full SHA for 14cde21
include/pybind11/cast.h
@@ -1570,9 +1570,9 @@ class argument_loader {
1570
using indices = make_index_sequence<sizeof...(Args)>;
1571
1572
template <typename Arg>
1573
- using argument_is_args = std::is_same<intrinsic_t<Arg>, args>;
+ using argument_is_args = std::is_base_of<args, intrinsic_t<Arg>>;
1574
1575
- using argument_is_kwargs = std::is_same<intrinsic_t<Arg>, kwargs>;
+ using argument_is_kwargs = std::is_base_of<kwargs, intrinsic_t<Arg>>;
1576
// Get kwargs argument position, or -1 if not present:
1577
static constexpr auto kwargs_pos = constexpr_last<argument_is_kwargs, Args...>();
1578
0 commit comments