Make buffered_file move assignment noexcept
This commit is contained in:
parent
3a951a66cb
commit
5863d7f067
@ -247,10 +247,8 @@ class buffered_file {
|
||||
other.file_ = nullptr;
|
||||
}
|
||||
|
||||
buffered_file& operator=(buffered_file&& other) {
|
||||
close();
|
||||
file_ = other.file_;
|
||||
other.file_ = nullptr;
|
||||
buffered_file& operator=(buffered_file&& other) FMT_NOEXCEPT {
|
||||
std::swap(file_, other.file_);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user