-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
User-defined literals check for Intel C++ compiler #311
Comments
Thanks for reporting. Does ca33c93 fix the problem? |
The I have access to both older and newer icc versions so I can test it and/or make any required changes. Let me know if it's needed. |
That would be very helpful, thanks! I am not sure if |
Yes, you're right. Sorry about that. I was using a compatibility layer which I forgot about and assumed to be the native macro. Anyhow, I'll test it out a bit later today. |
ca33c93 does not fix the problem for me. I'm working on Linux, so the problem is not the value of |
Yes, this works for me. Thank you. If this could be applied to the 2.x branch as well, it would be very helpful. |
Fix user-defined literal detection for Intel C++ compiler (#311)
Yes, if the directory structure and naming conventions in the current master will be stable for the 3.0 release, that will work fine. Thanks again. |
Yes, the directory structure should be stable now. The naming conventions other than the library name itself (which doesn't affect API) haven't changed. |
When compiling with the Intel C++ compiler version 14 using c++11 mode, the check for whether user-defined literals can be used does not work. Including
format.h
leads to the error:This compiler version does not support user-defined literals (support is introduced in version 15, per https://software.intel.com/en-us/articles/c0x-features-supported-by-intel-c-compiler). However, the macro
FMT_USE_USER_DEFINED_LITERALS
ends up being defined only by the GCC version.The Intel compiler version can be checked using the macros
__ICC
on Linux/OSX and__ICL
on Windows, which returns the number1400
for my compiler version. There is apparently no macro that is actually cross-platform.I've only checked this on version 2.1, but it looks like the test for this hasn't changed in master.
The text was updated successfully, but these errors were encountered: