userver: userver/utils/fmt_compat.hpp Source File
Loading...
Searching...
No Matches
fmt_compat.hpp
1#pragma once
2
3#include <fmt/core.h>
4
5#if FMT_VERSION < 80000
6#define USERVER_FMT_CONST
7
8namespace fmt {
9
10template <typename S>
11const S& runtime(const S& s) {
12 return s;
13}
14
15} // namespace fmt
16#else
17#define USERVER_FMT_CONST const
18#endif