Skip to content

Commit

Permalink
For traits in constexpr context use ::value
Browse files Browse the repository at this point in the history
* Fixes #542
  • Loading branch information
HowardHinnant committed Jun 3, 2020
1 parent a088baf commit cac99da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/date/date.h
Original file line number Diff line number Diff line change
Expand Up @@ -4148,10 +4148,10 @@ operator+(std::basic_string<CharT, Traits, Alloc> x, const string_literal<CharT,
&& (!defined(__SUNPRO_CC) || __SUNPRO_CC > 0x5150)

template <class CharT,
class = std::enable_if_t<std::is_same<CharT, char>{} ||
std::is_same<CharT, wchar_t>{} ||
std::is_same<CharT, char16_t>{} ||
std::is_same<CharT, char32_t>{}>>
class = std::enable_if_t<std::is_same<CharT, char>::value ||
std::is_same<CharT, wchar_t>::value ||
std::is_same<CharT, char16_t>::value ||
std::is_same<CharT, char32_t>::value>>
CONSTCD14
inline
string_literal<CharT, 2>
Expand Down

0 comments on commit cac99da

Please sign in to comment.