example11.cpp
1.75 KB
-
pybind11::args should have been derived from tuple · 114bfeb7
args was derived from list, but cpp_function::dispatcher sends a tuple to it->impl (line #346 and #392 in pybind11.h). As a result args::size() and args::operator[] don't work at all. On my mac args::size() returns -1. Making args a subclass of tuple fixes it.
Yung-Yu Chen committed