Declare a NoteData template as noexcept
This commit is contained in:
+1
-4
@@ -386,10 +386,7 @@ public:
|
|||||||
/** @brief Allow a quick way to swap notedata. */
|
/** @brief Allow a quick way to swap notedata. */
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
template<> inline void swap<NoteData>( NoteData &nd1, NoteData &nd2 )
|
template<> inline void swap<NoteData>( NoteData &nd1, NoteData &nd2 ) noexcept
|
||||||
#if !defined(_MSC_VER)
|
|
||||||
noexcept(is_nothrow_move_constructible<NoteData>::value && is_nothrow_move_assignable<NoteData>::value)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
nd1.swap( nd2 );
|
nd1.swap( nd2 );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user