Mark namespace scope constexpr variable 'buffer_size' inline. (#4084)

* Mark namespace scope constexpr variable 'buffer_size' inline.

* Use provided macro for inline variable.
This commit is contained in:
Cameron Angus 2024-07-24 17:58:38 +01:00 committed by GitHub
parent 52b32081f9
commit 31b3c325f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -383,7 +383,7 @@ class file_buffer final : public buffer<char> {
} // namespace detail
constexpr auto buffer_size = detail::buffer_size();
FMT_INLINE_VARIABLE constexpr auto buffer_size = detail::buffer_size();
/// A fast output stream for writing from a single thread. Writing from
/// multiple threads without external synchronization may result in a data race.