-
Notifications
You must be signed in to change notification settings - Fork 120
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
Print Predicate for Compile-time Assertions on Failure #273
Comments
Not sure whether I fully understand, isn't the following what you are asking for 🤔
|
If I understand correctly, |
Ah, I see, yeah, you are right, NTTP branch -> https://github.com/boost-experimental/ut/blob/master/include/boost/ut.hpp#L1880 For the time being, for clang, I'd stick with the run-time version to see the expression and check whether it's constant on top of that (that works for both: clang and gcc)
Full example here -> https://godbolt.org/z/Zd-Ni9 |
Awesome! That's exactly what I was talking about. 😌 |
👍 |
Is it possible to have the predicate printed for constant expressions when there is a failure?
Take the following code as an example, which is taken from the tutorial but evaluated at compile-time.
Is it possible to get output similar to the following at run-time where the predicate is shown on failure?
The text was updated successfully, but these errors were encountered: