mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #9072
69a8175
Change std::result_of to auto (Lee Clagett)
This commit is contained in:
commit
7795895774
@ -217,15 +217,13 @@ namespace
|
|||||||
//// Digest Authentication
|
//// Digest Authentication
|
||||||
|
|
||||||
template<typename Digest>
|
template<typename Digest>
|
||||||
typename std::result_of<Digest()>::type generate_a1(
|
auto generate_a1(Digest digest, const http::login& creds, const boost::string_ref realm)
|
||||||
Digest digest, const http::login& creds, const boost::string_ref realm)
|
|
||||||
{
|
{
|
||||||
return digest(creds.username, u8":", realm, u8":", creds.password);
|
return digest(creds.username, u8":", realm, u8":", creds.password);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Digest>
|
template<typename Digest>
|
||||||
typename std::result_of<Digest()>::type generate_a1(
|
auto generate_a1(Digest digest, const http::http_client_auth::session& user)
|
||||||
Digest digest, const http::http_client_auth::session& user)
|
|
||||||
{
|
{
|
||||||
return generate_a1(std::move(digest), user.credentials, user.server.realm);
|
return generate_a1(std::move(digest), user.credentials, user.server.realm);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user