mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-15 15:26:19 -04:00
fix: compatibility with fmt v11
This commit is contained in:
parent
ff4ad23a98
commit
f39be139b2
@ -31,6 +31,9 @@
|
||||
#include <unordered_set>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#if FMT_VERSION >= 110000
|
||||
#include <fmt/ranges.h>
|
||||
#endif
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
|
@ -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(
|
||||
|
@ -23,6 +23,9 @@
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#if FMT_VERSION >= 110000
|
||||
#include <fmt/ranges.h>
|
||||
#endif
|
||||
|
||||
#include <folly/String.h>
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user