std::swap should not throw for C++11 (PR #1171)

Add noexcept decoration to std::swap for C++11 and above.
This commit is contained in:
Teebonne 2022-10-20 21:11:17 +01:00 committed by GitHub
parent eaa1bf572d
commit 4afef9d425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}