Skip to content

_json operator""()  #3644

Closed
Closed
@boris-999

Description

@boris-999

Description

had some issues with operator"" _json namespacing. added the #define as per docs: https://json.nlohmann.me/api/operator_literal_json/ then there was an issue with #if JSON_USE_GLOBAL_UDLS not making any sense. should that be #ifdef ?

Reproduction steps

  1. #define JSON_USE_GLOBAL_UDLS
  2. #if JSON_USE_GLOBAL_UDLS causes compiler error

Expected vs. actual results

probaly should be #ifdef, not #if

Minimal code example

No response

Error messages

No response

Compiler and operating system

msvc 2019 - 16.11.17 (current as of 2022-08-02)

Library version

3.11.0

Validation

Metadata

Metadata

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions