test_python_types.py
19.3 KB
-
Improve constructor resolution in variant_caster · 94d0a9f7
Currently, `py::int_(1).cast<variant<double, int>>()` fills the `double` slot of the variant. This commit switches the loader to a 2-pass scheme in order to correctly fill the `int` slot.
Dean Moldovan committed