Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[format.syn] No forward declaration for tuple formatter #6014

Open
hewillk opened this issue Dec 11, 2022 · 0 comments
Open

[format.syn] No forward declaration for tuple formatter #6014

hewillk opened this issue Dec 11, 2022 · 0 comments

Comments

@hewillk
Copy link
Contributor

hewillk commented Dec 11, 2022

In [format.syn], there is no declaration for tuple formatter ([format.tuple]).
Given that it is an independent section like [format.range], should we add the something like the following to the <format>'s synopsis?

// [format.tuple], tuple formatter
template<class charT, formattable<charT>... Ts>
  struct formatter<pair-or-tuple<Ts...>, charT>;

Although the pair-or-tuple here is not very clear to me, even though it is described in [format.tuple] as follows:

For each of pair and tuple, the library provides the following formatter specialization where pair-or-tuple is the name of the template:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant