55 #include <fmt/format.h>
59 template <
typename T,
typename V,
typename H>
60 struct fmt::formatter<
Gaudi::Property<T, V, H>> : formatter<T> {
62 constexpr
auto parse( format_parse_context&
ctx ) -> format_parse_context::iterator {
64 if ( it !=
end && *it ==
'?' ) {
67 if ( it !=
end && *it !=
'}' ) detail::error_handler().on_error(
"invalid format" );
73 #if FMT_VERSION >= 90000
78 if constexpr ( std::is_same_v<T, std::string> ) {
80 s << std::quoted( p.
value(),
'\'' );
81 return fmt::format_to(
ctx.out(),
" '{}':{}", p.
name(),
s.str() );
83 return fmt::format_to(
ctx.out(),
" '{}':{}", p.
name(), p.
value() );