• Yung-Yu Chen's avatar
    pybind11::args should have been derived from tuple · 114bfeb7
    Yung-Yu Chen authored
    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.
    114bfeb7
example11.cpp 1.75 KB