Skip to content
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

Enum support (fix for Issue #121) #429

Merged
merged 10 commits into from
Nov 4, 2020
Merged

Conversation

jkriegshauser
Copy link
Contributor

Description

When a CHECK fails and the decomposed expression includes an enum, the values are not printed but instead {?} is printed. This resolves that.

GitHub Issues

Closes #121

@onqtam
Copy link
Member

onqtam commented Nov 4, 2020

Good work! I was surprised to see that all compilers in the current build matrix actually have __underlying_type and __is_enum with the same names.

My only concern for this (as noted in #121 ) is that it adds SFINAE on the main instantiation path for every assert because of the use of enable_if... However, this will impact compile times only a bit, and this is useful enough to have enabled by default for all users. Merging!

@onqtam onqtam merged commit 961a542 into doctest:dev Nov 4, 2020
@jkriegshauser jkriegshauser deleted the enum-support branch November 6, 2020 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants