Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

add json_fwd.hpp#327

Open
uneasyalliance wants to merge 1 commit intopantor:mainfrom
uneasyalliance:add_json_fwd_header
Open

add json_fwd.hpp#327
uneasyalliance wants to merge 1 commit intopantor:mainfrom
uneasyalliance:add_json_fwd_header

Conversation

@uneasyalliance
Copy link

add json_fwd.hpp from json/single_include/nlohmann/single_include directory of the nlohmann json project. Also add json_fwd.hpp wrapper in include/inja. This is a smaller include forward file suitable for use in an include file. Not needed to build but useful for code using the json library.

add json_fwd.hpp from json/single_include/nlohmann/single_include directory of the nlohmann json project. Also add json_fwd.hpp wrapper in include/inja. This is a smaller include forward file suitable for use in an include file. Not needed to build but useful for code using the json library.
@uneasyalliance
Copy link
Author

Hi, I've been using inja in a project for a year or so, and discovered in the upstream nlohmann/json repository the json_fwd.hpp header which is the minimal header needed to reference the json library from a header file in client code without pulling in the whole json.hpp. Here's a pull request in case it's useful for others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant