Removing string_view dependency.
This commit is contained in:
parent
4d254201bd
commit
a504d3f6fc
@ -2481,7 +2481,12 @@ struct lazy_optional {
|
||||
};
|
||||
|
||||
FMT_BEGIN_NAMESPACE
|
||||
template <> struct formatter<lazy_optional> : formatter<std::string_view> {
|
||||
template <> struct formatter<lazy_optional> {
|
||||
template <typename ParseContext>
|
||||
auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
|
||||
return ctx.begin();
|
||||
}
|
||||
|
||||
template <typename Context>
|
||||
auto format(const lazy_optional& opt, Context& ctx) {
|
||||
if (opt.engaged) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user