Skip to content

Commit

Permalink
Mark namespace scope constexpr variable 'buffer_size' inline. (#4084)
Browse files Browse the repository at this point in the history
* Mark namespace scope constexpr variable 'buffer_size' inline.

* Use provided macro for inline variable.
  • Loading branch information
kamrann authored Jul 24, 2024
1 parent 52b3208 commit 31b3c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 31b3c32

Please sign in to comment.