mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-23 05:35:13 +00:00
221fb1e11e
The current code requires implicitly that integral types are cast-able to floating point. In case of strongly-typed integrals (e.g. as explained at http://www.ilikebigbits.com/blog/2014/5/6/type-safe-identifiers-in-c) this is not always the case. This commit uses SFINAE to move the numeric conversions into separate `cast()` implementations to avoid the issue. |
||
---|---|---|
.. | ||
pybind11 |