mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Declare Vector moves as noexcept.
This commit is contained in:
parent
e8faafefb2
commit
27b2851291
@ -27,7 +27,7 @@ public:
|
||||
}
|
||||
|
||||
Vector( const Vector& ) = delete;
|
||||
Vector( Vector&& src )
|
||||
Vector( Vector&& src ) noexcept
|
||||
: m_ptr( src.m_ptr )
|
||||
, m_size( src.m_size )
|
||||
, m_capacity( src.m_capacity )
|
||||
@ -60,7 +60,7 @@ public:
|
||||
}
|
||||
|
||||
Vector& operator=( const Vector& ) = delete;
|
||||
Vector& operator=( Vector&& src )
|
||||
Vector& operator=( Vector&& src ) noexcept
|
||||
{
|
||||
delete[] m_ptr;
|
||||
m_ptr = src.m_ptr;
|
||||
|
Loading…
Reference in New Issue
Block a user