jsoncpp
jsoncpp copied to clipboard
Error with Visual Studio 2019, C++20 Debug X64
json\include\json\allocator.h(53,14)
: error C2760: syntax error: unexpected token 'static_cast', expected 'type specifier'
json\include\json\allocator.h(51,8)
: message : This diagnostic occurred in the compiler generated function 'void Json::SecureAllocator<T>::construct(T *,Args &&...)'
json\include\json\allocator.h(74)
: message : see reference to class template instantiation 'Json::SecureAllocator<T>' being compiled
See https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-2/compiler-error-c2760?view=msvc-160
I am running into the same issue here.