aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2023-11-20 11:56:17 -0500
committerLee Clagett <code@leeclagett.com>2023-11-20 17:16:42 -0500
commit69a8175edc22bfb0803a28f95d2698e456bd05b6 (patch)
tree8168421847e9d784ff4465b78b66644638379205
parentMerge pull request #9050 (diff)
downloadmonero-69a8175edc22bfb0803a28f95d2698e456bd05b6.tar.xz
Change std::result_of to auto
-rw-r--r--contrib/epee/src/http_auth.cpp6
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);
}