Commit 94d0a9f7 authored by Dean Moldovan's avatar Dean Moldovan
Browse files

Improve constructor resolution in variant_caster

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.
parent 93e3eac6
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