Skip to content

Commit b569ec3

Browse files
BillyONealras0219-msft
authored andcommitted
Avoid saying constexpr for VS2013. (#834)
1 parent 6f65e87 commit b569ec3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Release/include/cpprest/asyncrt_utils.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,13 @@ namespace details
359359
inline bool __cdecl is_alnum(const unsigned char uch) CPPREST_NOEXCEPT
360360
{ // test if uch is an alnum character
361361
// special casing char to avoid branches
362-
static constexpr bool is_alnum_table[UCHAR_MAX + 1] =
362+
static
363+
#if !defined(_MSC_VER) || _MSC_VER >= 1900
364+
constexpr
365+
#else
366+
const
367+
#endif
368+
bool is_alnum_table[UCHAR_MAX + 1] =
363369
{
364370
/* X0 X1 X2 X3 X4 X5 X6 X7 X8 X9 XA XB XC XD XE XF */
365371
/* 0X */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

0 commit comments

Comments
 (0)