-
Notifications
You must be signed in to change notification settings - Fork 17
Constexpr 20 #130
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
Constexpr 20 #130
Conversation
C++20 compilers more restricted in their constexpr capabilities. Use fewer of the gtest macros, which are not consteval capable in C++20 with GCC.
Run cmake and clang formatting passes.
Pull Request Test Coverage Report for Build 15959666185Details
💛 - Coveralls |
| include_guard(GLOBAL) | ||
|
|
||
| set(CMAKE_CXX_STANDARD 23) | ||
| set(CMAKE_CXX_STANDARD 20) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean this works around the compile bug for tests, but my bug report would still be a problem?
sorry had to refresh my memory -- this directly tests my issue, thanks
| std::abort(); | ||
| } else { | ||
| gtest_expect_eq(std::forward<U>(val1), std::forward<V>(val2)); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice improvement
|
LGTM - ship it. |
Make unit testing constexpr compatible in C++20.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120868 was in the way, at least partially.
Fixes #123