Commit 114bfeb7 authored by Yung-Yu Chen's avatar Yung-Yu Chen
Browse files

pybind11::args should have been derived from tuple

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.
parent 1e3be73a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment