Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fmt 11 enforces that fmt::formatter<..>::format() should be const. otherwise the tree does not build: ``` /usr/include/fmt/base.h:1392:29: error: passing ‘const fmt::v11::formatter<std::optional<mtx::http::ClientError> >’ as ‘this’ argument discards qualifiers [-fpermissive] 1392 | ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx)); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` so let's mark the `format()` with `const` specifier. Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information