summaryrefslogtreecommitdiff
path: root/asn.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-07-01 13:29:46 -0400
committerJeffrey Walton <noloader@gmail.com>2019-07-01 13:29:46 -0400
commit445ec61125d1aab1151ea248d2c22ac90f361094 (patch)
treeb92a6675308b0bd87e1e0cd68a5c786659827abc /asn.h
parentc3d4e79a0983c1b5ccf885d39edd44cebd51c07b (diff)
downloadcryptopp-git-445ec61125d1aab1151ea248d2c22ac90f361094.tar.gz
Remove copy ctor from DERGeneralEncoder and BERGeneralDecoder
GCC was giving too many warnings at -Wextra. We also could not comply with Rule of 3 because it resulted in compile failures in C++98 and C++03
Diffstat (limited to 'asn.h')
-rw-r--r--asn.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/asn.h b/asn.h
index c1f262a7..b31f3dfd 100644
--- a/asn.h
+++ b/asn.h
@@ -255,7 +255,7 @@ private:
};
/// \brief BER General Decoder
-class CRYPTOPP_DLL BERGeneralDecoder : public Store, NotCopyable
+class CRYPTOPP_DLL BERGeneralDecoder : public Store
{
public:
/// \brief Default ASN.1 tag
@@ -275,11 +275,6 @@ public:
/// \brief Construct an ASN.1 decoder
/// \param inQueue input byte queue
- /// \details BERGeneralDecoder uses DefaultTag
- explicit BERGeneralDecoder(BERGeneralDecoder &inQueue);
-
- /// \brief Construct an ASN.1 decoder
- /// \param inQueue input byte queue
/// \param asnTag ASN.1 tag
explicit BERGeneralDecoder(BERGeneralDecoder &inQueue, byte asnTag);
@@ -371,7 +366,7 @@ private:
};
/// \brief DER General Encoder
-class CRYPTOPP_DLL DERGeneralEncoder : public ByteQueue, NotCopyable
+class CRYPTOPP_DLL DERGeneralEncoder : public ByteQueue
{
public:
/// \brief Default ASN.1 tag
@@ -391,11 +386,6 @@ public:
/// \brief Construct an ASN.1 encoder
/// \param outQueue output byte queue
- /// \details DERGeneralEncoder uses DefaultTag
- explicit DERGeneralEncoder(DERGeneralEncoder &outQueue);
-
- /// \brief Construct an ASN.1 encoder
- /// \param outQueue output byte queue
/// \param asnTag ASN.1 tag
explicit DERGeneralEncoder(DERGeneralEncoder &outQueue, byte asnTag);