9#if __has_include(<fmt/base.h>)
20template <
typename... T>
21inline void print(fmt::format_string<T...> fmt, T&&... args) {
23 fmt::print(fmt, std::forward<T>(args)...);
24 }
catch (
const std::system_error&) {
31template <
typename... T>
32inline void print(std::FILE* f, fmt::format_string<T...> fmt, T&&... args) {
34 fmt::print(f, fmt, std::forward<T>(args)...);
35 }
catch (
const std::system_error&) {
42template <
typename... T>
43inline void println(fmt::format_string<T...> fmt, T&&... args) {
45 fmt::println(fmt, std::forward<T>(args)...);
46 }
catch (
const std::system_error&) {
53template <
typename... T>
54inline void println(std::FILE* f, fmt::format_string<T...> fmt, T&&... args) {
56 fmt::println(f, fmt, std::forward<T>(args)...);
57 }
catch (
const std::system_error&) {
Definition Hessian.hpp:18
void println(fmt::format_string< T... > fmt, T &&... args)
Wrapper around fmt::println() that squelches write failure exceptions.
Definition Print.hpp:43
void print(fmt::format_string< T... > fmt, T &&... args)
Wrapper around fmt::print() that squelches write failure exceptions.
Definition Print.hpp:21