We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c3e735 commit b498497Copy full SHA for b498497
tdutils/td/utils/Ed25519.h
@@ -26,7 +26,11 @@ class Ed25519 {
26
PublicKey(const PublicKey &other) : octet_string_(other.octet_string_.copy()) {
27
}
28
PublicKey(PublicKey &&) noexcept = default;
29
- PublicKey &operator=(const PublicKey &) = delete;
+ PublicKey &operator=(const PublicKey &other) {
30
+ CHECK(octet_string_.empty());
31
+ octet_string_ = other.octet_string_.copy();
32
+ return *this;
33
+ }
34
PublicKey &operator=(PublicKey &&) noexcept = delete;
35
~PublicKey() = default;
36
0 commit comments