Merge pull request #1514

fa0ee42c Workarounds for gcc 4.8 (Lee Clagett)
This commit is contained in:
Riccardo Spagni 2017-01-08 16:41:03 -08:00
commit 866463f37b
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -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;
};