Closed LuSo58 closed 3 months ago
After looking into it, I found that noexcept
was not initially part of the type system, but just a marker. See __cpp_noexcept_function_type
at https://en.cppreference.com/w/cpp/feature_test. I changed the guard macros accordingly.
Still compiles and passes CI. See "Actions" in the fork repo.
This is probably how it's supposed to be if-ed out :sweat_smile:
The noexcept
specifier is very useful in C++, so I'm delighted FunctionalPlus now supports it. :rocket:
Thanks a lot for this amazing contribution (and the nice test coverage)! :heart:
When using
function_traits
with callable items that are noexcept, no specialization would match. Here is a simple reproduction case for this.EDIT
Sorry for recreating the pull request. I finally figured out the CI and also wanted to rebase the branch to tidy the commits.
This version should compile for all compilers in the CI.