Skip to content

use json construct std::string #1462

Description

@yuzeng2017
  • 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 develop branch?

  • If you experience a compilation error: can you compile and run the unit tests?

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: stalethe issue has not been updated in a while and will be closed automatically soon unless it is updated

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions