aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-01-08 16:41:03 -0800
committerRiccardo Spagni <ric@spagni.net>2017-01-08 16:41:03 -0800
commit866463f37bb15a8d9c8830dc1e9af573a1577e99 (patch)
tree6ee3ed548e403b8c62b66f11bd8a5d34b4d4d8ea /contrib
parentMerge pull request #1510 (diff)
parentWorkarounds for gcc 4.8 (diff)
downloadmonero-866463f37bb15a8d9c8830dc1e9af573a1577e99.tar.xz
Merge pull request #1514
fa0ee42c Workarounds for gcc 4.8 (Lee Clagett)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/include/net/http_auth.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/contrib/epee/include/net/http_auth.h b/contrib/epee/include/net/http_auth.h
index 1931b6115..795d213d9 100644
--- a/contrib/epee/include/net/http_auth.h
+++ b/contrib/epee/include/net/http_auth.h
@@ -45,15 +45,22 @@ namespace net_utils
public:
struct login
{
- login() = delete;
+ login() : username(), password() {}
+ login(std::string username_, std::string password_)
+ : username(std::move(username_)), password(std::move(password_))
+ {}
+
std::string username;
std::string password;
};
struct session
{
- session() = delete;
- const login credentials;
+ session(login credentials_)
+ : credentials(std::move(credentials_)), nonce(), counter(0)
+ {}
+
+ login credentials;
std::string nonce;
std::uint32_t counter;
};