Skip to content

Commit fa2aa68

Browse files
jensmaurertkoeppe
authored andcommitted
LWG3544 format-arg-store::args is unintentionally not exposition-only
1 parent 2c762d8 commit fa2aa68

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

source/utilities.tex

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19125,11 +19125,11 @@
1912519125
decltype(auto) visit_format_arg(Visitor&& vis, basic_format_arg<Context> arg);
1912619126

1912719127
// \ref{format.arg.store}, class template \exposid{format-arg-store}
19128-
template<class Context, class... Args> struct @\placeholder{format-arg-store}@; // \expos
19128+
template<class Context, class... Args> class @\placeholder{format-arg-store}@; // \expos
1912919129

1913019130
template<class Context = format_context, class... Args>
1913119131
@\placeholder{format-arg-store}@<Context, Args...>
19132-
make_format_args(const Args&... args);
19132+
make_format_args(const Args&... fmt_args);
1913319133
template<class... Args>
1913419134
@\placeholder{format-arg-store}@<wformat_context, Args...>
1913519135
make_wformat_args(const Args&... args);
@@ -20901,8 +20901,8 @@
2090120901
\begin{codeblock}
2090220902
namespace std {
2090320903
template<class Context, class... Args>
20904-
struct @\placeholder{format-arg-store}@ { // \expos
20905-
array<basic_format_arg<Context>, sizeof...(Args)> args;
20904+
class @\exposid{format-arg-store}@ { // \expos
20905+
array<basic_format_arg<Context>, sizeof...(Args)> @\exposid{args}@; // \expos
2090620906
};
2090720907
}
2090820908
\end{codeblock}
@@ -20913,7 +20913,7 @@
2091320913
\indexlibraryglobal{make_format_args}%
2091420914
\begin{itemdecl}
2091520915
template<class Context = format_context, class... Args>
20916-
@\placeholder{format-arg-store}@<Context, Args...> make_format_args(const Args&... args);
20916+
@\placeholder{format-arg-store}@<Context, Args...> make_format_args(const Args&... fmt_args);
2091720917
\end{itemdecl}
2091820918

2091920919
\begin{itemdescr}
@@ -20926,7 +20926,9 @@
2092620926

2092720927
\pnum
2092820928
\returns
20929-
\tcode{\{basic_format_arg<Context>(args)...\}}.
20929+
An object of type \tcode{\exposid{format-arg-store}<Context, Args...>}
20930+
whose \exposid{args} data member is initialized with
20931+
\tcode{\{basic_format_arg<Context>(fmt_args)...\}}.
2093020932
\end{itemdescr}
2093120933

2093220934
\indexlibraryglobal{make_wformat_args}%

0 commit comments

Comments
 (0)