You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I've been using fmtlib (6.2.0) successfully in C++17 mode with clang, gcc, and MSVC. However, I just tried using Intel's compilers (v19.1) and ran into significant errors.
If I try to build the test code from the fmtlib repo as is, the code builds fine in C++11 mode.
On further investigation, looks like the problem is with use of (relaxed) constexpr. It looks like Intel supports extended constexpr in v19, but for some reason fails to build when FMT_USE_CONSTEXPR is set to on and FMT_CONSTEXPR is set to constexpr.
Changing the test for FMT_USE_CONSTEXPR in core.h to exclude the Intel compilers allows the code to compile. Works for me, for now, but I can't tell if there's a better way to solve this problem.
Thanks!
The text was updated successfully, but these errors were encountered:
Hello! I've been using fmtlib (6.2.0) successfully in C++17 mode with clang, gcc, and MSVC. However, I just tried using Intel's compilers (v19.1) and ran into significant errors.
If I try to build the test code from the fmtlib repo as is, the code builds fine in C++11 mode.
When I switch to either C++14 or C++17 mode, I get the errors (I just set
CMAKE_CXX_STANDARD
to 14 or 17) in this gist: https://gist.github.com/InnerPortal/db52fcebf16bb49fe50303ace24a9c24On further investigation, looks like the problem is with use of (relaxed) constexpr. It looks like Intel supports extended constexpr in v19, but for some reason fails to build when
FMT_USE_CONSTEXPR
is set to on andFMT_CONSTEXPR
is set toconstexpr
.Changing the test for
FMT_USE_CONSTEXPR
incore.h
to exclude the Intel compilers allows the code to compile. Works for me, for now, but I can't tell if there's a better way to solve this problem.Thanks!
The text was updated successfully, but these errors were encountered: