Cpp version depended if constexpr schema.h
Fix windows compile warning C4127
This commit is contained in:
parent
535636aeae
commit
9b5cad1649
@ -1762,7 +1762,7 @@ struct TokenHelper {
|
||||
template <typename Stack>
|
||||
struct TokenHelper<Stack, char> {
|
||||
RAPIDJSON_FORCEINLINE static void AppendIndexToken(Stack& documentStack, SizeType index) {
|
||||
if (sizeof(SizeType) == 4) {
|
||||
RAPIDJSON_IF_CONSTEXPR (sizeof(SizeType) == 4) {
|
||||
char *buffer = documentStack.template Push<char>(1 + 10); // '/' + uint
|
||||
*buffer++ = '/';
|
||||
const char* end = internal::u32toa(index, buffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user