Xiaofei Wang 898794488a
Add type_caster_std_function_specializations feature. (#4597)
* Allow specializations based on callback function return values.

* clang-tidy auto fix

* Add a test case for function specialization.

* Add test for callback function that raises Python exception.

* Fix test failures.

* style: pre-commit fixes

* Add `#define PYBIND11_HAS_TYPE_CASTER_STD_FUNCTION_SPECIALIZATIONS`

---------

Co-authored-by: Ralf W. Grosse-Kunstleve <rwgk@google.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-09 13:28:12 -07:00
..
2024-06-22 00:55:00 -04:00
2024-07-18 14:50:38 -04:00
2024-05-24 12:26:40 -04:00
2024-07-18 14:50:38 -04:00
2022-02-14 11:36:22 -08:00
2022-02-14 11:36:22 -08:00
2024-07-18 14:50:38 -04:00
2023-12-29 21:59:47 -08:00
2024-07-18 14:50:38 -04:00