Fixed move constructor + assignment
This commit is contained in:
parent
5782fd42af
commit
a164a55c86
1 changed files with 2 additions and 2 deletions
|
|
@ -33,13 +33,13 @@ namespace fc { namespace ecc {
|
|||
|
||||
private_key::private_key( const private_key& pk ) : my( pk.my ) {}
|
||||
|
||||
private_key::private_key( private_key&& pk ) : my( pk.my ) {}
|
||||
private_key::private_key( private_key&& pk ) : my( std::move( pk.my ) ) {}
|
||||
|
||||
private_key::~private_key() {}
|
||||
|
||||
private_key& private_key::operator=( private_key&& pk )
|
||||
{
|
||||
my = pk.my;
|
||||
my = std::move( pk.my );
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue