mirror of
https://github.com/monero-project/monero.git
synced 2024-12-25 12:29:22 -05:00
Merge pull request #1514
fa0ee42c
Workarounds for gcc 4.8 (Lee Clagett)
This commit is contained in:
commit
866463f37b
@ -45,15 +45,22 @@ namespace net_utils
|
|||||||
public:
|
public:
|
||||||
struct login
|
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 username;
|
||||||
std::string password;
|
std::string password;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct session
|
struct session
|
||||||
{
|
{
|
||||||
session() = delete;
|
session(login credentials_)
|
||||||
const login credentials;
|
: credentials(std::move(credentials_)), nonce(), counter(0)
|
||||||
|
{}
|
||||||
|
|
||||||
|
login credentials;
|
||||||
std::string nonce;
|
std::string nonce;
|
||||||
std::uint32_t counter;
|
std::uint32_t counter;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user