bugfix: allow noexcept lambdas in C++17. Fix #4565 (#4593)

* 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:
Aaron Gokaslan
2023-03-27 20:21:06 -04:00
committed by GitHub
parent 66f12df03b
commit 1e8b52a9ac
3 changed files with 17 additions and 1 deletions

View File

@@ -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; });
}