pybind11
pybind11 copied to clipboard
compilation error with Clang 3.4
What version (or hash if on master) of pybind11 are you using?
2.13.5
Problem description
I suppose Clang 3.4 is not widely used anymore, but just to let you know. I tried building my bindings on an old system with Clang 3.4 and I got:
include/pybind11/detail/type_caster_base.h:260:9: error:
return type 'pybind11::handle' must match previous return type 'const pybind11::handle' when
lambda expression has unspecified explicit return type
return handle();
^
It's this lambda: https://github.com/pybind/pybind11/blob/3fb16ad17587a7ad7fbe18c043e790d68ee7fab4/include/pybind11/detail/type_caster_base.h#L251-L261
After adding -> handle as the return type, the compiler was satisfied and I didn't come across any other problems.
Is this a regression? Put the last known working version here if it is.
must be a regression, but I don't know what was the last working version