From 9c9ddeba37030f61da86d48e4fe8025bbceacde2 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sun, 21 May 2017 13:29:39 -0400 Subject: [PATCH] Work around EDG 4.11 front end bug. --- date.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/date.h b/date.h index fd1e308..2793fbc 100644 --- a/date.h +++ b/date.h @@ -6673,7 +6673,7 @@ parse(const CharT* format, Parsable& tp, namespace detail { -#if __cplusplus >= 201402 +#if __cplusplus >= 201402 && (!defined(__EDG_VERSION__) || __EDG_VERSION__ > 411) template class string_literal @@ -7055,7 +7055,7 @@ get_units(std::ratio<3600>) return string_literal{"h"}; } -#else // __cplusplus < 201402 +#else // __cplusplus < 201402 || (defined(__EDG_VERSION__) && __EDG_VERSION__ <= 411) inline std::string @@ -7271,7 +7271,7 @@ get_units(std::ratio<3600>) return {'h'}; } -#endif // __cplusplus >= 201402 +#endif // __cplusplus < 201402 || (defined(__EDG_VERSION__) && __EDG_VERSION__ <= 411) template > struct make_string;