diff options
author | Jack Lloyd <[email protected]> | 2018-05-21 13:12:11 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-05-21 13:12:11 -0400 |
commit | 0bdf86a57f2e64610c214f429fe5b21418866bcc (patch) | |
tree | 27d441629d77ebc688f30b31611d6ca73dc0a197 | |
parent | be6a008a769f9477de5423d507875a03604a0d2a (diff) |
Make MSVC happy
-rw-r--r-- | src/lib/asn1/der_enc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/asn1/der_enc.h b/src/lib/asn1/der_enc.h index 65b19e4c7..ebca73d33 100644 --- a/src/lib/asn1/der_enc.h +++ b/src/lib/asn1/der_enc.h @@ -164,6 +164,19 @@ class BOTAN_PUBLIC_API(2,0) DER_Encoder final std::swap(m_set_contents, seq.m_set_contents); } + DER_Sequence& operator=(DER_Sequence&& seq) + { + std::swap(m_type_tag, seq.m_type_tag); + std::swap(m_class_tag, seq.m_class_tag); + std::swap(m_contents, seq.m_contents); + std::swap(m_set_contents, seq.m_set_contents); + return (*this); + } + + DER_Sequence(const DER_Sequence& seq) = default; + + DER_Sequence& operator=(const DER_Sequence& seq) = default; + private: ASN1_Tag m_type_tag, m_class_tag; secure_vector<uint8_t> m_contents; |