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
If you use Parse(root, "data1.txt"); as it is in the FirstExample.cpp, it works
Parse(root, "data1.txt");
However, if you use const std::string file = "data1.txt"; Parse(root, filepath); it throws an exception
const std::string file = "data1.txt";
Parse(root, filepath);
If we use const std::string file = "data1.txt"; Parse(root, filepath.c_str()); it works
Parse(root, filepath.c_str());
I am using Microsoft Visual Studio Community 2019 Version 16.6.0
The text was updated successfully, but these errors were encountered:
Yeah, the API is flawed and uses overloads incorrectly. Parsing a file should be renamed to "ParseFile" or something.
Sorry, something went wrong.
No branches or pull requests
If you use
Parse(root, "data1.txt");
as it is in the FirstExample.cpp, it works
However, if you use
const std::string file = "data1.txt";
Parse(root, filepath);
it throws an exception
If we use
const std::string file = "data1.txt";
Parse(root, filepath.c_str());
it works
I am using Microsoft Visual Studio Community 2019 Version 16.6.0
The text was updated successfully, but these errors were encountered: