10 #ifndef __stir_FORMAT__ 11 #define __stir_FORMAT__ 26 #if __cplusplus >= 202002L // C++-20 30 #if defined(__cpp_lib_format) && (__cpp_lib_format >= 201907L) 32 namespace internal_format =
std;
34 # define FMT_HEADER_ONLY 1 35 # if defined(_MSC_VER) 38 # define FMT_UNICODE 0 40 # include "fmt/format.h" 41 namespace internal_format = fmt;
46 #if defined(__cpp_lib_format) && (__cpp_lib_format >= 201907L) 50 template <
typename... Args>
52 format(fmt::format_string<Args...> fmt, Args&&... args)
54 return fmt::format(fmt, std::forward<Args>(args)...);
60 template <
typename... Args>
62 runtime_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)...);
73 #endif // __stir_FORMAT__
basic configuration include file