[clang-tidy] Add noexcept where move is used
Found with performance-noexcept-move-constructor Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Victor Zverovich
parent
e6e8298904
commit
bb0c8bfea8
@@ -607,14 +607,14 @@ class basic_memory_buffer : private Allocator, public internal::buffer<T> {
|
||||
of the other object to it.
|
||||
\endrst
|
||||
*/
|
||||
basic_memory_buffer(basic_memory_buffer&& other) { move(other); }
|
||||
basic_memory_buffer(basic_memory_buffer&& other) FMT_NOEXCEPT { move(other); }
|
||||
|
||||
/**
|
||||
\rst
|
||||
Moves the content of the other ``basic_memory_buffer`` object to this one.
|
||||
\endrst
|
||||
*/
|
||||
basic_memory_buffer& operator=(basic_memory_buffer&& other) {
|
||||
basic_memory_buffer& operator=(basic_memory_buffer&& other) FMT_NOEXCEPT {
|
||||
assert(this != &other);
|
||||
deallocate();
|
||||
move(other);
|
||||
|
||||
Reference in New Issue
Block a user