You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Truly-recursive inherited vector cannot be formatted by std::formatter #46
I think this is yet another corner case that invokes legitimate recursive instantiation, perhaps some leftover from #11.
Note that the default std::formatter specialization for ranges seem to be available these days, so applying the formatting function itself works out of the box (the range formatter delegates to the child formatter, hence the recursive instantiation).
Explicitly defining a custom std::formatter specialization also seems not working because it's essentially the same thing as above when you just call formatter by iterating each elements.
From the previous experience, I'm guessing that splitting declaration and definition is the primary candidate of the solution, but I'm not sure how it can be applied to the std::formatter specialization.
What is the practical way to solving this issue? Investigation needed.
changed the title [-]Truly recursive vector cannot be formatted by `std::formatter`[/-][+]Truly-recursive inherited vector cannot be formatted by `std::formatter`[/+]on Mar 3, 2026
Activity
[-]Truly recursive vector cannot be formatted by `std::formatter`[/-][+]Truly-recursive inherited vector cannot be formatted by `std::formatter`[/+]