diff --git a/alib2std/src/extensions/container/ptr_array.hpp b/alib2std/src/extensions/container/ptr_array.hpp index 6265b5b19d6bb751bbadf1a585b6bf0ece2e8623..a3c4974a2ec7e3b910b16cca2c9cad180543d226 100644 --- a/alib2std/src/extensions/container/ptr_array.hpp +++ b/alib2std/src/extensions/container/ptr_array.hpp @@ -169,7 +169,7 @@ public: * \brief * Destructor of the pointer array. */ - ~ptr_array ( ) { + ~ptr_array ( ) noexcept { for ( size_type i = 0; i < N; ++ i ) delete m_data.at ( i ); } @@ -198,7 +198,7 @@ public: * * \param other the source instance */ - ptr_array < T, N > & operator = ( ptr_array < T, N > && other ) { + ptr_array < T, N > & operator = ( ptr_array < T, N > && other ) noexcept { std::swap ( m_data, other.m_data ); return *this; diff --git a/alib2std/src/extensions/container/ptr_vector.hpp b/alib2std/src/extensions/container/ptr_vector.hpp index a898c7e0758f2f4028b3b46fa7c85e0b02a873ec..d0ac7563e6a80cc8898f188a26d344b04e86fa6e 100644 --- a/alib2std/src/extensions/container/ptr_vector.hpp +++ b/alib2std/src/extensions/container/ptr_vector.hpp @@ -121,8 +121,7 @@ public: * \brief * The default constructor creating empty vector. */ - ptr_vector ( ) noexcept { - } + ptr_vector ( ) noexcept = default; /** * \brief