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

Use C++11-compatible operations #1520

Merged
merged 1 commit into from
Jan 15, 2020
Merged

Use C++11-compatible operations #1520

merged 1 commit into from
Jan 15, 2020

Conversation

gsjaardema
Copy link
Contributor

The std::is_base_of<T,U>() and std::is_reference<T>() member functions were added in C++14. To maintain C++11 compatibility, use the ::value instead.

Current code fails on intel-17 and other compilers if using strict C++11

I agree that my contributions are licensed under the {fmt} license, and agree to future changes to the licensing.

The `std::is_base_of<T,U>()` and `std::is_reference<T>()` member functions were added in C++14.  To maintain C++11 compatibility, use the `::value` instead.

Current code fails on intel-17 and other compilers if using strict C++11
@vitaut
Copy link
Contributor

vitaut commented Jan 15, 2020

Technically this code is C++11-compatible because these are ctor not operator() calls but I'm fine merging this as a workaround for the Intel compiler.

@vitaut vitaut merged commit 55b6130 into fmtlib:master Jan 15, 2020
@vitaut
Copy link
Contributor

vitaut commented Jan 15, 2020

Thanks!

@gsjaardema gsjaardema deleted the patch-6 branch January 15, 2020 19:26
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