Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade fmt #352

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading