Fixed move constructor + assignment

This commit is contained in:
Peter Conrad 2015-03-24 17:01:07 +01:00
parent 5782fd42af
commit a164a55c86

View file

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