You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And what is the actual behavior instead? Error (active) E0167 argument of type "nlohmann::basic_json<std::map, std::vector, std::string, bool, int64_t, uint64_t, double, std::allocator, nlohmann::adl_serializer> *" is incompatible with parameter of type "int *"
Which compiler and operating system are you using? Is it a supported compiler?
Visual Studio 2017 15.5.3, Windows 10
Did you use a released version of the library or the version from the develop branch?
Released
Bug Report
What is the issue you have?
I cannot pass a JSON iteration object by reference to a function
Please describe the steps to reproduce the issue. Can you provide a small but working code example?
To be able to pass the object by reference, rather than this:
And what is the actual behavior instead?
Error (active) E0167 argument of type "nlohmann::basic_json<std::map, std::vector, std::string, bool, int64_t, uint64_t, double, std::allocator, nlohmann::adl_serializer> *" is incompatible with parameter of type "int *"Which compiler and operating system are you using? Is it a supported compiler?
Visual Studio 2017 15.5.3, Windows 10
Did you use a released version of the library or the version from the
developbranch?Released
If you experience a compilation error: can you compile and run the unit tests?
Yes