Merge pull request #9072

69a8175 Change std::result_of to auto (Lee Clagett)
This commit is contained in:
luigi1111 2024-01-18 18:01:08 -05:00
commit 7795895774
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 2 additions and 4 deletions

View File

@ -217,15 +217,13 @@ namespace
//// Digest Authentication
template<typename Digest>
typename std::result_of<Digest()>::type generate_a1(
Digest digest, const http::login& creds, const boost::string_ref realm)
auto generate_a1(Digest digest, const http::login& creds, const boost::string_ref realm)
{
return digest(creds.username, u8":", realm, u8":", creds.password);
}
template<typename Digest>
typename std::result_of<Digest()>::type generate_a1(
Digest digest, const http::http_client_auth::session& user)
auto generate_a1(Digest digest, const http::http_client_auth::session& user)
{
return generate_a1(std::move(digest), user.credentials, user.server.realm);
}