Fix warning C26439

This commit is contained in:
Jiwoo Park 2024-04-16 01:17:49 +09:00 committed by Victor Zverovich
parent f746a59a5c
commit f4b256c667
2 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,7 @@ class file_buffer final : public buffer<char> {
public:
FMT_API file_buffer(cstring_view path, const ostream_params& params);
FMT_API file_buffer(file_buffer&& other);
FMT_API file_buffer(file_buffer&& other) noexcept;
FMT_API ~file_buffer();
void flush() {

View File

@ -381,7 +381,7 @@ file_buffer::file_buffer(cstring_view path, const ostream_params& params)
set(new char[params.buffer_size], params.buffer_size);
}
file_buffer::file_buffer(file_buffer&& other)
file_buffer::file_buffer(file_buffer&& other) noexcept
: buffer<char>(grow, other.data(), other.size(), other.capacity()),
file_(std::move(other.file_)) {
other.clear();