open-source-parsers / open-source-parsers/jsoncpp

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

Open
#1,340 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
8.9k
Forks
2.7k
Avg merge
31m
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with json/include/json/allocator.h around lines 51-53 and reproduce the reported build using Visual Studio 2019 with C++20 in Debug X64. Investigate the C2760 diagnostic and confirm the library builds successfully in that configuration; no test file or additional reproduction is mentioned.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.