userver: userver/utils/fmt_compat.hpp Source File
Loading...
Searching...
No Matches
fmt_compat.hpp
Go to the documentation of this file.
1#pragma once
2
6
7#include <fmt/core.h>
8
9#if FMT_VERSION < 80000
10#define USERVER_FMT_CONST
11
13namespace fmt {
14
15template <typename S>
16const S& runtime(const S& s) {
17 return s;
18}
19
20} // namespace fmt
21#else
22#define USERVER_FMT_CONST const
23#endif