-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable forward declaration of json by making json a class instead of a using declaration #997
Comments
Making this change would break everything, but since version |
@pgoodman Did you have the chance to test whether |
I didn't test the multiple header approach because I wanted to put the single header version into my project at |
I would think that you could put both the single file and the fwd file in your project. |
this had not occurred to me ;-) |
That didn't work for me. |
Did you include |
@pgoodman Could you provide more information like a small example program or the concrete error message? |
copying both |
I would like to be able to be able to declare the conversion operators in a header without having to
#include
the json.h file. I would then define the conversion operators in a source file, which actually includes json.h.Here is an example of what I want do do, but can't:
What is stopping me is
using json = basic_json<>;
. A simple fix should beclass json : public basic_json<> {};
.The text was updated successfully, but these errors were encountered: