Open
Description
Required prerequisites
- Make sure you've read the documentation. Your issue may be addressed there.
- Search the issue tracker and Discussions to verify that this hasn't already been reported. +1 or comment there if it has.
- Consider asking first in the Gitter chat room or in a Discussion.
What version (or hash if on master) of pybind11 are you using?
2.3.0rc1
Problem description
I am trying out the numpy 2.3.0rc1 arm windows support,
and accidentally enabled building skia-python against pybind11 3.0.0rc1 too - https://github.com/kyamagu/skia-python/actions/runs/15240052449 -
It is failing with pybind11's cast.h:
src/skia/Canvas.cpp:239:19: required from here
/opt/python/cp310-cp310/lib/python3.10/site-packages/pybind11/include/pybind11/cast.h:70:32: error: invalid ‘static_cast’ from type ‘const SkCanvas::Lattice::RectType* const’ to type ‘pybind11::detail::type_caster_enum_type<SkCanvas::Lattice::RectType>::Underlying’ {aka ‘unsigned char’}
70 | return native_enum(static_cast<Underlying>(src)).release();
| ^~~~~~~~~~
I had a quick look at the upgrade guide and nothing jumps out to me yet.
Reproducible example code
Is this a regression? Put the last known working version here if it is.
2.13.6