-
-
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
json::parse of std::string being underlined by Visual Studio #402
Comments
The compiler used by Intellisense is not the same as the compiler used to build the program. The Intellisense compiler doesn't always have all the information it needs to figure out whether something is valid or not, unfortunately. As long as the program compiles, you'd need to report this Intellisense failure to Microsoft. |
Ah interesting @gregmarr thanks for sharing that! I'll do some research and see if I can fix it. Will report back what I find. :) |
Thanks @Noitidart. I shall close this issue in the meantime as there is nothing we can do about it. |
Makes total sense thanks for telling me before closing. :) |
Hey all, I found a weird fix for this silly issue. If I do .c_str() it doesnt underline it. It makes no sense to me. Does this make sense to anyone?
|
@Noitidart Thanks for checking back! |
This was just a nit pick. I don't know why but it keeps underlining my json::parse from strings. I use json::parse on varaibles like this:
This compiles, but it gets underlined by visual studio like this:
Do you know why this is? It works fine. Is there a way to properly use json::parse with variables?
Thank you!
The text was updated successfully, but these errors were encountered: