-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
use json construct std::string #1462
Copy link
Copy link
Closed
Labels
state: stalethe issue has not been updated in a while and will be closed automatically soon unless it is updatedthe issue has not been updated in a while and will be closed automatically soon unless it is updated
Description
Metadata
Metadata
Assignees
Labels
state: stalethe issue has not been updated in a while and will be closed automatically soon unless it is updatedthe issue has not been updated in a while and will be closed automatically soon unless it is updated
What is the issue you have?
“std::basic_string<char,std::char_traits,std::allocator>::basic_string”: Overload function ambiguous.
Please describe the steps to reproduce the issue. Can you provide a small but working code example?
json j;
j["account"] = "123456";
std::string account_text(j["account"]);
vs2015 compile error.
What is the expected behavior?
And what is the actual behavior instead?
Which compiler and operating system are you using? Is it a supported compiler?
Did you use a released version of the library or the version from the
developbranch?If you experience a compilation error: can you compile and run the unit tests?