Fix type concept check. Remove refernce to get key_type et al

This commit is contained in:
Arun M 2017-11-23 17:56:38 +05:30
parent fc294cbc8a
commit 973e7e0249
4 changed files with 30 additions and 25 deletions
include/jwt/test

View file

@ -11,12 +11,14 @@ void basic_jwt_object_test()
{"a", "b"},
{"c", "d"}
}));
//check with std::map
std::map<std::string, std::string> m;
m["a"] = "b";
m["c"] = "d";
jwt::jwt_object obj1{payload(m)};
auto obj2 = std::move(obj1);
std::cout << obj2.payload() << std::endl;