We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This works.
#include "json.h" #include <vector> using json = nlohmann::json; int main() { std::vector<json> testList; }
This also works.
#include "json.h" #include <vector> using json = nlohmann::json; int main() { std::vector<json*> testList; }
This doesn't. Gives compile error. Why?
#include "json.h" #include <vector> using json = nlohmann::json; int main() { std::vector<json&> testList; }
The text was updated successfully, but these errors were encountered:
This is unrelated to the library: https://stackoverflow.com/questions/8200701/vectors-of-references-to-objects
Sorry, something went wrong.
No branches or pull requests
This works.
This also works.
This doesn't. Gives compile error. Why?
The text was updated successfully, but these errors were encountered: