userver: userver/utils/fmt_compat.hpp Source File
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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