Skip to content

map string string fails to compile #176

Description

@matspetter

I fail to compile this piece of code:

using namespace nlohmann;
using maptype = std::map<std::string, std::string>;

maptype t;
json s=t; // this works
s.get<maptype>(); // this line fails
// if I change to map<string,int> then it compiles

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedkind: bugsolution: wontfixthe issue will not be fixed (either it is impossible or deemed out of scope)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions