mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-23 04:59:16 +00:00
Fix type concept check. Remove refernce to get key_type et al
This commit is contained in:
parent
fc294cbc8a
commit
973e7e0249
4 changed files with 30 additions and 25 deletions
include/jwt/test
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue