Allow for forward declaring nlohmann::json #381
Labels
kind: enhancement/improvement
solution: duplicate
the issue is a duplicate; refer to the linked issue instead
To avoid including
json.hpp
in header files, I would like to forward declarenlohmann::json
as follows:However, this doesn't work, since
nlohmann::json
is a typedef. If you just derived it frombasic_json<>
, it would work:What do you think?
The text was updated successfully, but these errors were encountered: