-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Build error when modify value #1998
Labels
Comments
I find the error : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, all
When build code ,got this error: ,bug use
g++ -fpermissive test.cpp
can build success and work success, how to fix this bugThe follow is my code :
`
#include
#include
#include <nlohmann/json.hpp>
using namespace nlohmann;
int main()
{
constexpr auto jsfile = "/home/parallels/nlohmanntest/sensors.json";
std::ifstream jsonFile(jsfile);
if (!jsonFile.is_open()){
std::cout << "Unable to open json file" << std::endl;
}
auto sensors = json::parse(jsonFile, nullptr, false);
if (sensors.is_discarded()){
std::cout << "Invalid json - parse failed" << std::endl;
}
}
`
thanks a lot~~
The text was updated successfully, but these errors were encountered: