pybind / pybind11

Seamless operability between C++11 and Python
https://pybind11.readthedocs.io/
Other
15.73k stars 2.11k forks source link

Fix small bug introduced with PR #4735 #4845

Closed rwgk closed 1 year ago

rwgk commented 1 year ago

Description

The use case is obscure, but there were several hundred test failures in Google global testing (internal ID OCL:564297233:BASE:564749796:1694537097629:e7f6f551):

third_party/crosstool/v18/stable/toolchain/bin/../include/c++/v1/string:1214: assertion __pos <= size() failed: string index out of bounds

(Leaving the suggested changelog entry empty because there was no release yet that included #4735.)

Suggested changelog entry: