aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-17 16:25:51 +0000
committerlloyd <[email protected]>2009-11-17 16:25:51 +0000
commit49b20f4e4ff3b8e3141905871ccae9fc70e77a1d (patch)
treec00201a612018adb51278ad095721d45ab3766af /src/asn1
parent57199e2a8ec339c9cccb5c837416f91119936213 (diff)
Use the new support for explicitly deleting functions instead of hiding
them as private variables for operator= and copy constructors that shouldn't be used.
Diffstat (limited to 'src/asn1')
-rw-r--r--src/asn1/ber_dec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asn1/ber_dec.h b/src/asn1/ber_dec.h
index 2e38af301..7de7f3753 100644
--- a/src/asn1/ber_dec.h
+++ b/src/asn1/ber_dec.h
@@ -55,14 +55,14 @@ class BOTAN_DLL BER_Decoder
BER_Decoder& decode_optional_string(MemoryRegion<byte>&,
ASN1_Tag, u16bit);
+ BER_Decoder& operator=(const BER_Decoder&) = delete;
+
BER_Decoder(DataSource&);
BER_Decoder(const byte[], u32bit);
BER_Decoder(const MemoryRegion<byte>&);
BER_Decoder(const BER_Decoder&);
~BER_Decoder();
private:
- BER_Decoder& operator=(const BER_Decoder&) { return (*this); }
-
BER_Decoder* parent;
DataSource* source;
BER_Object pushed;