mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-14 16:58:34 +00:00
use find instead of count on std::set. libc++ has a bug in that count is not cont member function.
This commit is contained in:
parent
724fe8c3a7
commit
a5728dd397
4 changed files with 1 additions and 1 deletions
Binary file not shown.
Binary file not shown.
|
@ -660,7 +660,7 @@ public: // Exposed APIs
|
|||
//based overload
|
||||
bool has_claim(const jwt::string_view cname) const noexcept
|
||||
{
|
||||
return claim_names_.count(cname);
|
||||
return claim_names_.find(cname) != std::end(claim_names_);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue