diff options
author | Jack Lloyd <[email protected]> | 2018-06-08 05:28:53 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-06-08 05:28:53 -0400 |
commit | e57a7a00a172cadce319714c1a5110c3360a8abc (patch) | |
tree | 2ad6b8ce9ec6fd3855e842b1a5554ea8e0a9c585 /src | |
parent | 4c3eb886c69041922aeaabcb57e3ff0602d5bbc5 (diff) |
Declare copy and move constructors on BER_Object
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/asn1/asn1_obj.h | 8 |
1 files changed, 8 insertions, 0 deletions
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()); } |