diff options
author | Teebonne <80053070+Teebonne@users.noreply.github.com> | 2022-10-20 21:11:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 16:11:17 -0400 |
commit | 4afef9d425413287b9ab7ac4b263df213c30a641 (patch) | |
tree | ee3264ea5d38d8bfc2cb68ffad7001953e02e4b9 /queue.h | |
parent | eaa1bf572d6b4adb776cf236aaf53671eb356914 (diff) | |
download | cryptopp-git-4afef9d425413287b9ab7ac4b263df213c30a641.tar.gz |
std::swap should not throw for C++11 (PR #1171)
Add noexcept decoration to std::swap for C++11 and above.
Diffstat (limited to 'queue.h')
-rw-r--r-- | queue.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -262,7 +262,7 @@ NAMESPACE_END #ifndef __BORLANDC__
NAMESPACE_BEGIN(std)
-template<> inline void swap(CryptoPP::ByteQueue &a, CryptoPP::ByteQueue &b)
+template<> inline void swap(CryptoPP::ByteQueue &a, CryptoPP::ByteQueue &b) CRYPTOPP_NO_THROW
{
a.swap(b);
}
|