Skip to content

Commit

Permalink
Avoid saying constexpr for VS2013. (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal authored and ras0219-msft committed Aug 12, 2018
1 parent 6f65e87 commit b569ec3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Release/include/cpprest/asyncrt_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,13 @@ namespace details
inline bool __cdecl is_alnum(const unsigned char uch) CPPREST_NOEXCEPT
{ // test if uch is an alnum character
// special casing char to avoid branches
static constexpr bool is_alnum_table[UCHAR_MAX + 1] =
static
#if !defined(_MSC_VER) || _MSC_VER >= 1900
constexpr
#else
const
#endif
bool is_alnum_table[UCHAR_MAX + 1] =
{
/* X0 X1 X2 X3 X4 X5 X6 X7 X8 X9 XA XB XC XD XE XF */
/* 0X */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
Expand Down

0 comments on commit b569ec3

Please sign in to comment.