-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix compilation with intel compilers (ICC/ICPC) v14.0 #882
Conversation
test/format-test.cc
Outdated
@@ -1577,7 +1577,7 @@ struct explicitly_convertible_to_string_like { | |||
typename String, | |||
typename = typename std::enable_if< | |||
std::is_constructible<String, const char*, std::size_t>::value>::type> | |||
explicit operator String() const { return String("foo", 3u); } | |||
operator String() const { return String("foo", 3u); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explicit
is required here. Please use FMT_EXPLICIT
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yeah, this makes sense. Corrected!
@@ -89,7 +89,8 @@ | |||
# endif | |||
#endif | |||
|
|||
#if FMT_HAS_FEATURE(cxx_explicit_conversions) || FMT_MSC_VER >= 1800 | |||
#if FMT_HAS_FEATURE(cxx_explicit_conversions) || \ | |||
FMT_GCC_VERSION >= 405 || FMT_MSC_VER >= 1800 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used https://en.cppreference.com/w/cpp/compiler_support to check for the GCC version
Travis is done, but did not update the commit status, weird =/ |
Merged in e864acf, thanks! |
The
auto
change was a warningThe
explicit
change was an error