Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit 3739d40

Browse files
committed
FixedHash: Add explicit copy constructor to SecureFixedHash
As of C++11, the implicitly declared copy constructor is deprecated if a class has user-defined assignment operator. GCC 9 has added a warning for it.
1 parent be3efc2 commit 3739d40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libdevcore/FixedHash.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ class SecureFixedHash: private FixedHash<T>
219219
using ConstructFromStringType = typename FixedHash<T>::ConstructFromStringType;
220220
using ConstructFromPointerType = typename FixedHash<T>::ConstructFromPointerType;
221221
SecureFixedHash() = default;
222+
SecureFixedHash(SecureFixedHash const&) = default;
222223
explicit SecureFixedHash(bytes const& _b, ConstructFromHashType _t = FixedHash<T>::FailIfDifferent): FixedHash<T>(_b, _t) {}
223224
explicit SecureFixedHash(bytesConstRef _b, ConstructFromHashType _t = FixedHash<T>::FailIfDifferent): FixedHash<T>(_b, _t) {}
224225
explicit SecureFixedHash(bytesSec const& _b, ConstructFromHashType _t = FixedHash<T>::FailIfDifferent): FixedHash<T>(_b.ref(), _t) {}

0 commit comments

Comments
 (0)