mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 03:07:36 +02:00
Fix for EDG frontend (Intel, NVHPC compilers) (#2982)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
committed by
GitHub
parent
92d36e82c4
commit
defa04e730
@ -2017,13 +2017,16 @@ struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
|
|||||||
return formatter<std::tm, Char>::format(localtime(val), ctx);
|
return formatter<std::tm, Char>::format(localtime(val), ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr const Char default_specs[] = {'%', 'F', ' ', '%', 'T'};
|
// EDG frontend (Intel, NVHPC compilers) can't determine array length.
|
||||||
|
static constexpr const Char default_specs[5] = {'%', 'F', ' ', '%', 'T'};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if FMT_CPLUSPLUS < 201703L
|
||||||
template <typename Char, typename Duration>
|
template <typename Char, typename Duration>
|
||||||
constexpr const Char
|
constexpr const Char
|
||||||
formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
|
formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
|
||||||
Char>::default_specs[];
|
Char>::default_specs[];
|
||||||
|
#endif
|
||||||
|
|
||||||
template <typename Char> struct formatter<std::tm, Char> {
|
template <typename Char> struct formatter<std::tm, Char> {
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user