jsoncpp icon indicating copy to clipboard operation
jsoncpp copied to clipboard

Error with Visual Studio 2019, C++20 Debug X64

Open peakpeak-github opened this issue 4 years ago • 1 comments

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

peakpeak-github avatar Oct 11 '21 08:10 peakpeak-github

I am running into the same issue here.

MightyFilipns avatar Apr 28 '25 15:04 MightyFilipns