aligator 0.19.0
A versatile and efficient C++ library for real-time constrained trajectory optimization.
Loading...
Searching...
No Matches
fmt.hpp
Go to the documentation of this file.
1
3#pragma once
4
5#include <fmt/core.h>
6#include <fmt/format.h>
7
8#if FMT_VERSION < 100000
9
10// Redefine `fmt::println`
11// This code come from:
12// https://github.com/fmtlib/fmt/pull/3267/changes/94d53d405f1b8332277d5bfea33f1e1c460c5f0d
13namespace fmt {
14
15template <typename... T>
16FMT_INLINE void println(std::FILE *f, format_string<T...> fmt, T &&...args) {
17 return fmt::print(f, "{}\n", fmt::format(fmt, std::forward<T>(args)...));
18}
19
20template <typename... T>
21FMT_INLINE void println(format_string<T...> fmt, T &&...args) {
22 return fmt::println(stdout, fmt, std::forward<T>(args)...);
23}
24
25} // namespace fmt
26#endif // if FMT_VERSION < 100000
Definition fmt.hpp:13
FMT_INLINE void println(std::FILE *f, format_string< T... > fmt, T &&...args)
Definition fmt.hpp:16