aligator 0.18.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
7#if FMT_VERSION < 100000
8
9// Redefine `fmt::println`
10// This code come from:
11// https://github.com/fmtlib/fmt/pull/3267/changes/94d53d405f1b8332277d5bfea33f1e1c460c5f0d
12namespace fmt {
13
14template <typename... T>
15FMT_INLINE void println(std::FILE *f, format_string<T...> fmt, T &&...args) {
16 return fmt::print(f, "{}\n", fmt::format(fmt, std::forward<T>(args)...));
17}
18
19template <typename... T>
20FMT_INLINE void println(format_string<T...> fmt, T &&...args) {
21 return fmt::println(stdout, fmt, std::forward<T>(args)...);
22}
23
24} // namespace fmt
25#endif // if FMT_VERSION < 100000
Definition fmt.hpp:12
FMT_INLINE void println(std::FILE *f, format_string< T... > fmt, T &&...args)
Definition fmt.hpp:15