10#ifndef __stir_FORMAT__
11#define __stir_FORMAT__
26#if __cplusplus >= 202002L
30#if defined(__cpp_lib_format) && (__cpp_lib_format >= 201907L)
32namespace internal_format = std;
34# define FMT_HEADER_ONLY 1
40# include "fmt/format.h"
41namespace internal_format = fmt;
46#if defined(__cpp_lib_format) && (__cpp_lib_format >= 201907L)
50template <
typename... Args>
52format(fmt::format_string<Args...> fmt, Args&&... args)
54 return fmt::format(fmt, std::forward<Args>(args)...);
60template <
typename... Args>
62runtime_format(internal_format::string_view fmt, Args&&... args)
64#if defined(__cpp_lib_format) && (__cpp_lib_format >= 201907L)
65 return internal_format::vformat(fmt, std::make_format_args(args...));
67 return internal_format::format(fmt::runtime(fmt), std::forward<Args>(args)...);
basic configuration include file