Skip to content

Commit ad33212

Browse files
Alisdair Meredithjwakely
authored andcommitted
[any.modifiers] fix emplace return type for 'any' (#1545)
LWG issue 2857 was applied verbatim, without noticing that 'ValueType' had been previously changed to 'T'. This makes things consistent by choosing 'T' as the simpler form, more consistent with 'optional' and 'variant'.
1 parent 6af7ffc commit ad33212

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/utilities.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5547,9 +5547,9 @@
55475547

55485548
// \ref{any.modifiers}, modifiers
55495549
template <class T, class... Args>
5550-
decay_t<ValueType>& emplace(Args&& ...);
5550+
decay_t<T>& emplace(Args&& ...);
55515551
template <class T, class U, class... Args>
5552-
decay_t<ValueType>& emplace(initializer_list<U>, Args&&...);
5552+
decay_t<T>& emplace(initializer_list<U>, Args&&...);
55535553
void reset() noexcept;
55545554
void swap(any& rhs) noexcept;
55555555

@@ -5807,7 +5807,7 @@
58075807
\indexlibrarymember{emplace}{any}%
58085808
\begin{itemdecl}
58095809
template <class T, class... Args>
5810-
decay_t<ValueType>& emplace(Args&&... args);
5810+
decay_t<T>& emplace(Args&&... args);
58115811
\end{itemdecl}
58125812

58135813
\begin{itemdescr}
@@ -5845,7 +5845,7 @@
58455845
\indexlibrarymember{emplace}{any}%
58465846
\begin{itemdecl}
58475847
template <class T, class U, class... Args>
5848-
decay_t<ValueType>& emplace(initializer_list<U> il, Args&&... args);
5848+
decay_t<T>& emplace(initializer_list<U> il, Args&&... args);
58495849
\end{itemdecl}
58505850

58515851
\begin{itemdescr}

0 commit comments

Comments
 (0)