Permalink
Browse files

Merge pull request #1514

fa0ee42 Workarounds for gcc 4.8 (Lee Clagett)
  • Loading branch information...
2 parents 2a996f4 + fa0ee42 commit 866463f37bb15a8d9c8830dc1e9af573a1577e99 @fluffypony fluffypony committed Jan 9, 2017
Showing with 10 additions and 3 deletions.
  1. +10 −3 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;
};

0 comments on commit 866463f

Please sign in to comment.