forked from HowardHinnant/date
Work around EDG 4.11 front end bug.
This commit is contained in:
6
date.h
6
date.h
@ -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;
|
||||||
|
Reference in New Issue
Block a user