mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 08:17:37 +00:00
Workarounds for gcc 4.8
This commit is contained in:
parent
dd580d7bc7
commit
fa0ee42cc9
1 changed files with 10 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue