Skip to content

Commit cac99da

Browse files
committed
For traits in constexpr context use ::value
* Fixes #542
1 parent a088baf commit cac99da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/date/date.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4148,10 +4148,10 @@ operator+(std::basic_string<CharT, Traits, Alloc> x, const string_literal<CharT,
41484148
&& (!defined(__SUNPRO_CC) || __SUNPRO_CC > 0x5150)
41494149

41504150
template <class CharT,
4151-
class = std::enable_if_t<std::is_same<CharT, char>{} ||
4152-
std::is_same<CharT, wchar_t>{} ||
4153-
std::is_same<CharT, char16_t>{} ||
4154-
std::is_same<CharT, char32_t>{}>>
4151+
class = std::enable_if_t<std::is_same<CharT, char>::value ||
4152+
std::is_same<CharT, wchar_t>::value ||
4153+
std::is_same<CharT, char16_t>::value ||
4154+
std::is_same<CharT, char32_t>::value>>
41554155
CONSTCD14
41564156
inline
41574157
string_literal<CharT, 2>

0 commit comments

Comments
 (0)