Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/meta.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2800,15 +2800,15 @@
static_assert( is_pointer_interconvertible_with_class( &C::b ) );
// Succeeds because, despite its appearance, \tcode{\&C::b} has type
// ``pointer to member of \tcode{B} of type \tcode{int}''.
static_assert( is_pointer_interconvertible_with_class<C>( &C::b ) );
// Forces the use of class \tcode{C}, and fails.
static_assert( !is_pointer_interconvertible_with_class<C, int>( &C::b ) );
// Forces the use of class \tcode{C}, and the result is \tcode{false}.

static_assert( is_corresponding_member( &C::a, &C::b ) );
// Succeeds because, despite its appearance, \tcode{\&C::a} and \tcode{\&C::b} have types
// ``pointer to member of \tcode{A} of type \tcode{int}'' and
// ``pointer to member of \tcode{B} of type \tcode{int}'', respectively.
static_assert( is_corresponding_member<C, C>( &C::a, &C::b ) );
// Forces the use of class \tcode{C}, and fails.
static_assert( !is_corresponding_member<C, C, int, int>( &C::a, &C::b ) );
// Forces the use of class \tcode{C}, and the result is \tcode{false}.
\end{codeblock}
\end{example}
\end{note}
Expand Down