Skip to content

Commit 31b3c32

Browse files
authored
Mark namespace scope constexpr variable 'buffer_size' inline. (#4084)
* Mark namespace scope constexpr variable 'buffer_size' inline. * Use provided macro for inline variable.
1 parent 52b3208 commit 31b3c32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/fmt/os.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ class file_buffer final : public buffer<char> {
383383

384384
} // namespace detail
385385

386-
constexpr auto buffer_size = detail::buffer_size();
386+
FMT_INLINE_VARIABLE constexpr auto buffer_size = detail::buffer_size();
387387

388388
/// A fast output stream for writing from a single thread. Writing from
389389
/// multiple threads without external synchronization may result in a data race.

0 commit comments

Comments
 (0)