summaryrefslogtreecommitdiff
path: root/queue.h
diff options
context:
space:
mode:
authorTeebonne <80053070+Teebonne@users.noreply.github.com>2022-10-20 21:11:17 +0100
committerGitHub <noreply@github.com>2022-10-20 16:11:17 -0400
commit4afef9d425413287b9ab7ac4b263df213c30a641 (patch)
treeee3264ea5d38d8bfc2cb68ffad7001953e02e4b9 /queue.h
parenteaa1bf572d6b4adb776cf236aaf53671eb356914 (diff)
downloadcryptopp-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/queue.h b/queue.h
index f2d0dc53..40755b62 100644
--- a/queue.h
+++ b/queue.h
@@ -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);
}