Skip to content

Commit 4753486

Browse files
Dawn Perchikzygoloid
authored andcommitted
LWG3182 Specification of Same could be clearer
1 parent e33be08 commit 4753486

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/concepts.tex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,18 @@
273273
\indexlibrary{\idxcode{Same}}%
274274
\begin{itemdecl}
275275
template<class T, class U>
276-
concept Same = is_same_v<T, U>;
276+
concept @\placeholdernc{same-impl}@ = is_same_v<T, U>; // \expos
277+
278+
template<class T, class U>
279+
concept Same = @\placeholdernc{same-impl}@<T, U> && @\placeholdernc{same-impl}@<U, T>;
277280
\end{itemdecl}
278281

279282
\begin{itemdescr}
280283
\pnum
284+
\begin{note}
281285
\tcode{\libconcept{Same}<T, U>} subsumes \tcode{\libconcept{Same}<U, T>} and
282286
vice versa.
287+
\end{note}
283288
\end{itemdescr}
284289

285290
\rSec2[concept.derivedfrom]{Concept \libconcept{DerivedFrom}}

0 commit comments

Comments
 (0)