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:
Arun M 2018-01-02 12:04:45 +05:30
parent 724fe8c3a7
commit a5728dd397
4 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -660,7 +660,7 @@ public: // Exposed APIs
//based overload //based overload
bool has_claim(const jwt::string_view cname) const noexcept 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.