diff --git a/src/cryptlib/asn.cpp b/src/cryptlib/asn.cpp index 88b015e..cc6be88 100644 --- a/src/cryptlib/asn.cpp +++ b/src/cryptlib/asn.cpp @@ -81,7 +81,7 @@ BERSequenceDecoder::BERSequenceDecoder(BufferedTransformation &inQueue) definiteLength = BERLengthDecode(inQueue, length); } -BERSequenceDecoder::~BERSequenceDecoder() +BERSequenceDecoder::~BERSequenceDecoder() NOEXCEPT_FALSE { if (!definiteLength) { // remove end-of-content octects diff --git a/src/cryptlib/asn.h b/src/cryptlib/asn.h index 13c18e1..f20b03f 100644 --- a/src/cryptlib/asn.h +++ b/src/cryptlib/asn.h @@ -25,7 +25,7 @@ class BERSequenceDecoder : public BufferedTransformation { public: BERSequenceDecoder(BufferedTransformation &inQueue); - ~BERSequenceDecoder(); + ~BERSequenceDecoder() NOEXCEPT_FALSE; void Put(byte) {} void Put(const byte *, unsigned int) {} diff --git a/src/cryptlib/cryptlib.h b/src/cryptlib/cryptlib.h index 145616f..c23b367 100644 --- a/src/cryptlib/cryptlib.h +++ b/src/cryptlib/cryptlib.h @@ -10,6 +10,12 @@ #include #include +#if __cplusplus >= 201103L +# define NOEXCEPT_FALSE noexcept(false) +#else +# define NOEXCEPT_FALSE +#endif + /// base class for all exceptions thrown by Crypto++ class CryptlibException : public std::exception { @@ -198,7 +204,7 @@ class BufferedTransformation { public: /// - virtual ~BufferedTransformation() {} + virtual ~BufferedTransformation() NOEXCEPT_FALSE {} //@Man: INPUT //@{