Work around EDG 4.11 front end bug.

This commit is contained in:
Howard Hinnant
2017-05-21 13:29:39 -04:00
parent 0fb3921e5b
commit 9c9ddeba37

6
date.h
View File

@ -6673,7 +6673,7 @@ parse(const CharT* format, Parsable& tp,
namespace detail namespace detail
{ {
#if __cplusplus >= 201402 #if __cplusplus >= 201402 && (!defined(__EDG_VERSION__) || __EDG_VERSION__ > 411)
template <class CharT, std::size_t N> template <class CharT, std::size_t N>
class string_literal class string_literal
@ -7055,7 +7055,7 @@ get_units(std::ratio<3600>)
return string_literal<CharT, 2>{"h"}; return string_literal<CharT, 2>{"h"};
} }
#else // __cplusplus < 201402 #else // __cplusplus < 201402 || (defined(__EDG_VERSION__) && __EDG_VERSION__ <= 411)
inline inline
std::string std::string
@ -7271,7 +7271,7 @@ get_units(std::ratio<3600>)
return {'h'}; return {'h'};
} }
#endif // __cplusplus >= 201402 #endif // __cplusplus < 201402 || (defined(__EDG_VERSION__) && __EDG_VERSION__ <= 411)
template <class CharT, class Traits = std::char_traits<CharT>> template <class CharT, class Traits = std::char_traits<CharT>>
struct make_string; struct make_string;