Skip to content

Commit

Permalink
Upgrade to fmt 11.0.2
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Osterfeld <[email protected]>
  • Loading branch information
frankosterfeld committed Oct 2, 2024
1 parent b10bf28 commit c7b535c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FetchContent_Declare(
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
GIT_TAG 10.2.1
GIT_TAG 11.0.2
)

# dependency of mp-units, building examples, tests, etc is off by default
Expand Down
4 changes: 2 additions & 2 deletions src/disruptor/include/disruptor/RingBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ struct fmt::formatter<opencmw::disruptor::RingBuffer<T, SIZE, WAIT_STRATEGY, CLA
constexpr auto parse(ParseContext &ctx) { return ctx.begin(); }

template<typename FormatContext>
auto format(const opencmw::disruptor::RingBuffer<T, SIZE, WAIT_STRATEGY, CLAIM_STRATEGY> &ringBuffer, FormatContext &ctx) {
auto format(const opencmw::disruptor::RingBuffer<T, SIZE, WAIT_STRATEGY, CLAIM_STRATEGY> &ringBuffer, FormatContext &ctx) const {
std::stringstream stream;
stream << fmt::format("RingBuffer<{}, {}> - WaitStrategy: {{ {} }}, Cursor: {}, GatingSequences: [ ",
opencmw::typeName<T>, ringBuffer.bufferSize(), opencmw::typeName<WAIT_STRATEGY>, ringBuffer.cursor());
Expand All @@ -268,7 +268,7 @@ struct fmt::formatter<opencmw::disruptor::PollState> {
constexpr auto parse(ParseContext &ctx) { return ctx.begin(); }

template<typename FormatContext>
auto format(opencmw::disruptor::PollState const &value, FormatContext &ctx) {
auto format(opencmw::disruptor::PollState const &value, FormatContext &ctx) const {
switch (value) {
case opencmw::disruptor::PollState::Processing:
return fmt::format_to(ctx.out(), "PollState::Processing");
Expand Down
2 changes: 1 addition & 1 deletion src/disruptor/include/disruptor/Sequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ struct fmt::formatter<opencmw::disruptor::Sequence> {
}

template<typename FormatContext>
auto format(opencmw::disruptor::Sequence const &value, FormatContext &ctx) {
auto format(opencmw::disruptor::Sequence const &value, FormatContext &ctx) const {
return fmt::format_to(ctx.out(), "{}", value.value());
}
};
Expand Down

0 comments on commit c7b535c

Please sign in to comment.