Skip to content

Commit 08b83da

Browse files
committed
hack around some linker issue in C++14
1 parent 84b3d1a commit 08b83da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stl/inc/xcharconv_ryu_tables.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ _STD_BEGIN
5656

5757
// vvvvvvvvvv DERIVED FROM digit_table.h vvvvvvvvvv
5858

59+
#if !_HAS_CXX17
60+
namespace { // work around Clang link issues
61+
#endif // !_HAS_CXX17
62+
5963
// A table of all two-digit numbers. This is used to speed up decimal digit
6064
// generation by copying pairs of digits into the final output.
6165
template <class _CharT> constexpr _CharT __DIGIT_TABLE[] = {_CharT{}};
@@ -86,6 +90,10 @@ template <> _INLINE_VAR constexpr wchar_t __DIGIT_TABLE<wchar_t>[200] = {
8690
L'9',L'0',L'9',L'1',L'9',L'2',L'9',L'3',L'9',L'4',L'9',L'5',L'9',L'6',L'9',L'7',L'9',L'8',L'9',L'9'
8791
};
8892

93+
#if !_HAS_CXX17
94+
} // unnamed namespace
95+
#endif // !_HAS_CXX17
96+
8997
// ^^^^^^^^^^ DERIVED FROM digit_table.h ^^^^^^^^^^
9098

9199
// vvvvvvvvvv DERIVED FROM d2s_full_table.h vvvvvvvvvv

0 commit comments

Comments
 (0)