Skip to content

Commit edb8ad0

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source/concepts.tex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,19 @@
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}@ = // exposition only
277+
is_same_v<T, U>;
278+
279+
template<class T, class U>
280+
concept Same = @\placeholdernc{same-impl}@<T, U> && @\placeholdernc{same-impl}@<U, T>;
277281
\end{itemdecl}
278282

279283
\begin{itemdescr}
280284
\pnum
285+
\begin{note}
281286
\tcode{\libconcept{Same}<T, U>} subsumes \tcode{\libconcept{Same}<U, T>} and
282287
vice versa.
288+
\end{note}
283289
\end{itemdescr}
284290

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

0 commit comments

Comments
 (0)