mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 14:59:27 +00:00
* bugfix: allow noexcept lambdas in CPP17. Fix #4565 * Remove unused code from test case * Fix clang-tidy error * Address reviewer comment
This commit is contained in:
@@ -148,4 +148,7 @@ TEST_SUBMODULE(constants_and_functions, m) {
|
||||
py::arg_v("y", 42, "<the answer>"),
|
||||
py::arg_v("z", default_value));
|
||||
});
|
||||
|
||||
// test noexcept(true) lambda (#4565)
|
||||
m.def("l1", []() noexcept(true) { return 0; });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user