diff options
author | Lee Clagett <code@leeclagett.com> | 2016-12-30 02:14:06 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2016-12-30 02:14:06 -0500 |
commit | fa0ee42cc9d6f3b18c635f509b4d85b66da459f3 (patch) | |
tree | 66ad4ad44095da088d2f99abd95452ac2d51114a /contrib | |
parent | Merge pull request #1487 (diff) | |
download | monero-fa0ee42cc9d6f3b18c635f509b4d85b66da459f3.tar.xz |
Workarounds for gcc 4.8
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/include/net/http_auth.h | 13 |
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; }; |