Skip to content
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

Which is the correct way to json objects as parameters to functions? #644

Closed
pedrozan opened this issue Jul 2, 2017 · 2 comments
Closed
Labels
kind: question solution: proposed fix a fix for the issue has been proposed and waits for confirmation

Comments

@pedrozan
Copy link

pedrozan commented Jul 2, 2017

I'm trying to pass a JSON object to a function, but despite all my attempts I always get a segmentation failure. Which is the correct way to do this?

@nlohmann
Copy link
Owner

nlohmann commented Jul 2, 2017

You should be able to pass it just like a std::vector or a std::map - either as reference or const reference depending on your scenario.

Could you provide an example that fails?

@nlohmann
Copy link
Owner

nlohmann commented Jul 6, 2017

Do you need further help?

@nlohmann nlohmann added the solution: proposed fix a fix for the issue has been proposed and waits for confirmation label Jul 8, 2017
@nlohmann nlohmann closed this as completed Jul 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants