mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
* As of C++11, std::swap is noexcept. #2386 * fix(Any): remove throw on swap * fix(Any): As of C++11, std::swap is noexcept. #2386 * fix(Any): make size const #2386 * fix(SimpleRowFormatter): clang won't compile noexcept #2386 * a couple of arm fixes * fix(Any): As of C++11, std::swap is noexcept. #2386 * fix(AnyTest): local() for POCO_NO_SOO# 2386 * test(RSACipher): RSA encryption without private key #2367 * chore(RSACipherTest): delete ciphers #2367
This commit is contained in:
committed by
GitHub
parent
c37780726d
commit
168f1eb6e2
@@ -159,7 +159,7 @@ public:
|
||||
|
||||
enum { static_size = N };
|
||||
|
||||
void swap (Array<T,N>& y)
|
||||
void swap (Array<T,N>& y) noexcept
|
||||
{
|
||||
std::swap_ranges(begin(),end(),y.begin());
|
||||
}
|
||||
@@ -246,7 +246,7 @@ bool operator>= (const Array<T,N>& x, const Array<T,N>& y)
|
||||
|
||||
|
||||
template<class T, std::size_t N>
|
||||
inline void swap (Array<T,N>& x, Array<T,N>& y)
|
||||
inline void swap (Array<T,N>& x, Array<T,N>& y) noexcept
|
||||
/// global swap()
|
||||
{
|
||||
x.swap(y);
|
||||
|
||||
Reference in New Issue
Block a user