From e57a7a00a172cadce319714c1a5110c3360a8abc Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 8 Jun 2018 05:28:53 -0400 Subject: Declare copy and move constructors on BER_Object --- src/lib/asn1/asn1_obj.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib') diff --git a/src/lib/asn1/asn1_obj.h b/src/lib/asn1/asn1_obj.h index 7ae694977..f69c624ad 100644 --- a/src/lib/asn1/asn1_obj.h +++ b/src/lib/asn1/asn1_obj.h @@ -98,6 +98,14 @@ class BOTAN_PUBLIC_API(2,0) BER_Object final public: BER_Object() : type_tag(NO_OBJECT), class_tag(UNIVERSAL) {} + BER_Object(const BER_Object& other) = default; + + BER_Object(BER_Object&& other) = default; + + BER_Object& operator=(const BER_Object& other) = default; + + BER_Object& operator=(BER_Object&& other) = default; + bool is_set() const { return type_tag != NO_OBJECT; } ASN1_Tag tagging() const { return ASN1_Tag(type() | get_class()); } -- cgit v1.2.3