Add explicit declaration of move constructor and move assignment

This commit is contained in:
Serge Lamikhov-Center 2021-03-30 00:17:58 +03:00
parent 29114f6538
commit f591a3b74e

View File

@ -77,8 +77,12 @@ class elfio
}
//------------------------------------------------------------------------------
elfio( const elfio& ) = delete;
// clang-format off
elfio( const elfio& ) = delete;
elfio& operator=( const elfio& ) = delete;
elfio( elfio&& ) = default;
elfio& operator=( elfio&& ) = default;
// clang-format on
//------------------------------------------------------------------------------
~elfio() { clean(); }