Skip to content

Commit 271365b

Browse files
committed
[meta.unary.prop] Omit unhelpful second argument in static_asserts.
1 parent a2a2446 commit 271365b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

source/utilities.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16166,10 +16166,10 @@
1616616166
union U2 final { };
1616716167

1616816168
// the following assertions hold:
16169-
static_assert(!is_final_v<int>, "Error!");
16170-
static_assert( is_final_v<P>, "Error!");
16171-
static_assert(!is_final_v<U1>, "Error!");
16172-
static_assert( is_final_v<U2>, "Error!");
16169+
static_assert(!is_final_v<int>);
16170+
static_assert( is_final_v<P> );
16171+
static_assert(!is_final_v<U1> );
16172+
static_assert( is_final_v<U2> );
1617316173
\end{codeblock}
1617416174
\end{example}
1617516175

@@ -16852,12 +16852,12 @@
1685216852
the following assertions will hold:
1685316853

1685416854
\begin{codeblock}
16855-
static_assert(is_same_v<result_of_t<S(int)>, short>, "Error!");
16856-
static_assert(is_same_v<result_of_t<S&(unsigned char, int&)>, double>, "Error!");
16857-
static_assert(is_same_v<result_of_t<PF1()>, bool>, "Error!");
16858-
static_assert(is_same_v<result_of_t<PMF(unique_ptr<S>, int)>, void>, "Error!");
16859-
static_assert(is_same_v<result_of_t<PMD(S)>, char&&>, "Error!");
16860-
static_assert(is_same_v<result_of_t<PMD(const S*)>, const char&>, "Error!");
16855+
static_assert(is_same_v<result_of_t<S(int)>, short>);
16856+
static_assert(is_same_v<result_of_t<S&(unsigned char, int&)>, double>);
16857+
static_assert(is_same_v<result_of_t<PF1()>, bool>);
16858+
static_assert(is_same_v<result_of_t<PMF(unique_ptr<S>, int)>, void>);
16859+
static_assert(is_same_v<result_of_t<PMD(S)>, char&&>);
16860+
static_assert(is_same_v<result_of_t<PMD(const S*)>, const char&>);
1686116861
\end{codeblock}
1686216862
\end{example}
1686316863

0 commit comments

Comments
 (0)