mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-23 15:33:33 +08:00
As reported in #1349, clang before 3.5 can segfault on a function-local variable referenced inside a lambda. This moves the function-local static into a separate function that the lambda can invoke to avoid the issue. Fixes #1349