Skip to content

Commit

Permalink
Fix compile error with fmt 8.1.1
Browse files Browse the repository at this point in the history
The error is:

    .../include/fmt/core.h:1728:7: error: static assertion failed:
    Cannot format an argument. To make type T formattable provide a
    formatter<T> specialization: https://fmt.dev/latest/api.html#udt

fmt 8.0.1 worked well. This is probably related to
fmtlib/fmt#1841.
  • Loading branch information
wentasah committed Jul 25, 2022
1 parent cdc71f8 commit 8fd5ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/session.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2021 Michal Sojka <[email protected]>
// Copyright (C) 2021, 2022 Michal Sojka <[email protected]>
//
// This file is part of boardproxy.
//
Expand Down Expand Up @@ -143,7 +143,7 @@ void Session::on_data_from_client(ev::io &w, int revents)
break;
}
default:
logger->error("Unknown message type {}", h.id);
logger->error("Unknown message type {}", static_cast<int>(h.id));
}

// switch (header.id) {
Expand Down

0 comments on commit 8fd5ce3

Please sign in to comment.