Skip to content

Commit

Permalink
Make fizz::ExtensionType compatible with fmt11
Browse files Browse the repository at this point in the history
Summary:
starting from [fmt11.0.0](fmtlib/fmt#3447), fmt requires formatter::format to be const.
> Started enforcing that formatter::format is const for compatibility with std::format

X-link: facebookincubator/fizz#144

Reviewed By: NickR23

Differential Revision: D60912017

Pulled By: mingtaoy

fbshipit-source-id: 49e367c509a84523455220d791402ca4669942bd
  • Loading branch information
miyanyan authored and facebook-github-bot committed Aug 8, 2024
1 parent 289e1e1 commit 2cfe73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third-party/fizz/src/fizz/record/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ struct hash<fizz::ExtensionType> {

template <>
struct fmt::formatter<fizz::ExtensionType> : formatter<unsigned> {
auto format(fizz::ExtensionType t, format_context& ctx) {
auto format(fizz::ExtensionType t, format_context& ctx) const {
return formatter<unsigned>::format(folly::to_underlying(t), ctx);
}
};
Expand Down

0 comments on commit 2cfe73c

Please sign in to comment.