fix: compatibility with fmt v11

This commit is contained in:
Marcus Holland-Moritz 2024-07-24 10:39:20 +02:00
parent ff4ad23a98
commit f39be139b2
4 changed files with 10 additions and 1 deletions

View File

@ -31,6 +31,9 @@
#include <unordered_set>
#include <fmt/format.h>
#if FMT_VERSION >= 110000
#include <fmt/ranges.h>
#endif
#include <nlohmann/json.hpp>

View File

@ -121,7 +121,7 @@ operator<<(std::ostream& os, fragment_category const& cat) {
template <>
struct fmt::formatter<dwarfs::fragment_category> : formatter<std::string> {
template <typename FormatContext>
auto format(dwarfs::fragment_category const& cat, FormatContext& ctx) {
auto format(dwarfs::fragment_category const& cat, FormatContext& ctx) const {
if (cat) {
if (cat.has_subcategory()) {
return formatter<std::string>::format(

View File

@ -23,6 +23,9 @@
#include <vector>
#include <fmt/format.h>
#if FMT_VERSION >= 110000
#include <fmt/ranges.h>
#endif
#include <folly/String.h>

View File

@ -39,6 +39,9 @@
#include <folly/stats/Histogram.h>
#include <fmt/format.h>
#if FMT_VERSION >= 110000
#include <fmt/ranges.h>
#endif
#include <dwarfs/file_access.h>
#include <dwarfs/performance_monitor.h>