Skip to content

feat: add detail::type_caster_std_function_specializations #4597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 9, 2024
Prev Previous commit
Next Next commit
Fix test failures.
  • Loading branch information
wangxf123456 committed Mar 30, 2023
commit 6e29a3669ef2bcebc5443daa6e753712fca960d7
4 changes: 2 additions & 2 deletions tests/test_type_caster_std_function_specializations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ struct func_wrapper<SpecialReturn, Args...> : func_wrapper_base {
SpecialReturn result;
try {
result = hfunc.f(std::forward<Args>(args)...).template cast<SpecialReturn>();
} catch (error_already_set &e) {
result.value += 1;
} catch (error_already_set &) {
result.value += 1;
}
result.value += 100;
return result;
Expand Down