diff options
author | luigi1111 <luigi1111w@gmail.com> | 2024-01-18 18:01:08 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2024-01-18 18:01:08 -0500 |
commit | 7795895774e10e1b29c8560862c954b19adaac13 (patch) | |
tree | 772b498e7eb2b635d27009c6b0e4f3669b4c0f09 | |
parent | Merge pull request #9069 (diff) | |
parent | Change std::result_of to auto (diff) | |
download | monero-7795895774e10e1b29c8560862c954b19adaac13.tar.xz |
Merge pull request #9072
69a8175 Change std::result_of to auto (Lee Clagett)
-rw-r--r-- | contrib/epee/src/http_auth.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/epee/src/http_auth.cpp b/contrib/epee/src/http_auth.cpp index 5071d2685..d6de6a0e1 100644 --- a/contrib/epee/src/http_auth.cpp +++ b/contrib/epee/src/http_auth.cpp @@ -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); } |