Skip to content

json_fwd.hpp no longer standalone #3656

Closed
@michaeldurland

Description

@michaeldurland

Description

json_fwd.hpp now has a line:
#include <nlohmann/detail/abi_macros.hpp>
which means this file is no longer standalone. This makes it no longer possible to have a simple 2-file installation, with just json_fwd.hpp and the large single json.hpp.
This seems to be related to #3590

Reproduction steps

json_fwd.hpp now has a new external file dependency.

Expected vs. actual results

Expected:
Be able to have json_fwd.hpp standalone with no dependencies.
Actual:
json_fwd.hpp has an include file, so it can't be used by itself anymore.

Minimal code example

any code that wants to only do:
#include "json_fwd.hpp"

Error messages

can't find include file 'nlohmann/detail/abi_macros.hpp'

Compiler and operating system

any

Library version

3.11.1

Validation

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions