Skip to content

VERSION define(s) #948

@mark-99

Description

@mark-99

It would be useful if there was a #define for the version of the package. This would make it easier to transition client code across breaking changes, e.g. the 3.x changes to operator<< and exception types.

Just something like
#define NLOHMANN_JSON_VERSION 30102 // v3.1.2

Some people prefer to use hex, and some split into separate VERSION_MAJOR/MINOR/PATCH, whatever you want.

Metadata

Metadata

Assignees

Labels

solution: proposed fixa fix for the issue has been proposed and waits for confirmation

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions