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

Remove a custom implementation of std::enable_if #2400

Closed
wants to merge 2 commits into from

Conversation

kuzkry
Copy link
Contributor

@kuzkry kuzkry commented Aug 14, 2019

@asoffer
Copy link
Contributor

asoffer commented Aug 14, 2019

263426328

@EricWF
Copy link

EricWF commented Aug 23, 2019

This LGTM.

Although, it's fun to point out that this could change the behavior of code, because it's possible to observe the difference between enable_if<false> being an incomplete type as opposed to a complete type with an empty definition.
But anybody clever enough to do that is clever enough to fix it.

@kuzkry
Copy link
Contributor Author

kuzkry commented Aug 23, 2019

Heh, right! But look, no fixes needed; incompilable code is still incompilable :)

zhangxy988 pushed a commit that referenced this pull request Aug 23, 2019
zhangxy988 pushed a commit that referenced this pull request Aug 23, 2019
@kuzkry
Copy link
Contributor Author

kuzkry commented Aug 24, 2019

Merged by 9bf34ac.

@kuzkry kuzkry closed this Aug 24, 2019
@kuzkry kuzkry deleted the custom-type-traits-enable_if branch August 24, 2019 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants