8000 C2766 explicit specialization; 'specialization' has already been defined when compiling on Visual Studio with /Zc:__cplusplus flag · Issue #1250 · bblanchon/ArduinoJson · GitHub
[go: up one dir, main page]

Skip to content
C2766 explicit specialization; 'specialization' has already been defined when compiling on Visual Studio with /Zc:__cplusplus flag #1250
@archieLa

Description

@archieLa

Since Visual Studio 2017 when /Zc:__cplusplus flag is used then the __cplusplus macro is evaluated correctly based on C++ standard used. When that happens the C2766 occurs since both ARDUINOJSON_HAS_LONG_LONG and ARUDINO_HAS_INT_64 are evaluated to be true and cause duplicate template specialization

561C
#define ARDUINOJSON_HAS_INT64 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0