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

Make range_value SFINAE-friendly #89

Open
Lastique opened this issue Mar 22, 2019 · 0 comments
Open

Make range_value SFINAE-friendly #89

Lastique opened this issue Mar 22, 2019 · 0 comments

Comments

@Lastique
Copy link
Member

Currently (Boost 1.69) range_value<T>::type hard-fails to compile if T is not a range type. This is because it unconditionally uses range_iterator<T>::type and that type is missing in that case. Please, make range_value also SFINAE-friendly, i.e. so that it doesn't hard-fail the compilation but rather doesn't define the type type if T is not a range type.

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

No branches or pull requests

1 participant