pybind11 icon indicating copy to clipboard operation
pybind11 copied to clipboard

Use argument-dependent-lookup for tuple_caster's get

Open meghprkh opened this issue 2 months ago • 4 comments

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> {
};

Suggested changelog entry:

meghprkh avatar Jun 12 '24 19:06 meghprkh