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

Support constexpr for arithmetic strong_typedef_ops #63

Merged
merged 2 commits into from
Nov 14, 2017
Merged

Support constexpr for arithmetic strong_typedef_ops #63

merged 2 commits into from
Nov 14, 2017

Conversation

JohelEGP
Copy link
Contributor

@JohelEGP JohelEGP commented Nov 9, 2017

I extended 84d4c7c's solution to other arithmetic strong_typedef_ops to support their use in constexpr evaluations in C++14 and later.

@foonathan
Copy link
Owner

Could you provide some test cases?

@JohelEGP
Copy link
Contributor Author

Maybe I missed them, but I dind't find any constexpr tests, so I thought that the current, runtime ones would suffice. Any directions on doing constexpr tests?

@foonathan
Copy link
Owner

Oh, right. They are already tested.

@foonathan foonathan merged commit c552b16 into foonathan:master Nov 14, 2017
@JohelEGP JohelEGP deleted the fully_constexpr_arithmetic_strong_typedef_op branch November 14, 2017 18:30
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