pybind11
pybind11 copied to clipboard
Use argument-dependent-lookup for tuple_caster's get
Description
Some libraries have custom container types and define their own get
. They also extend the Pybind casters to bind their containers. This uses argument-dependent-lookup for using the correct "get" function
This allows me to use this as:
using mylib::get;
template <typename T1, typename T2>
class type_caster<mylib::pair<T1, T2>> : public tuple_caster<mylib::pair, T1, T2> {
};