Skip to content

[meta.unary.prop, meta.trans.other] Omit unhelpful second argument in static_asserts. #1479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 23, 2017
Merged
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
20 changes: 10 additions & 10 deletions source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16166,10 +16166,10 @@
union U2 final { };

// the following assertions hold:
static_assert(!is_final_v<int>, "Error!");
static_assert( is_final_v<P>, "Error!");
static_assert(!is_final_v<U1>, "Error!");
static_assert( is_final_v<U2>, "Error!");
static_assert(!is_final_v<int>);
static_assert(is_final_v<P>);
static_assert(!is_final_v<U1>);
static_assert(is_final_v<U2>);
\end{codeblock}
\end{example}

Expand Down Expand Up @@ -16852,12 +16852,12 @@
the following assertions will hold:

\begin{codeblock}
static_assert(is_same_v<result_of_t<S(int)>, short>, "Error!");
static_assert(is_same_v<result_of_t<S&(unsigned char, int&)>, double>, "Error!");
static_assert(is_same_v<result_of_t<PF1()>, bool>, "Error!");
static_assert(is_same_v<result_of_t<PMF(unique_ptr<S>, int)>, void>, "Error!");
static_assert(is_same_v<result_of_t<PMD(S)>, char&&>, "Error!");
static_assert(is_same_v<result_of_t<PMD(const S*)>, const char&>, "Error!");
static_assert(is_same_v<result_of_t<S(int)>, short>);
static_assert(is_same_v<result_of_t<S&(unsigned char, int&)>, double>);
static_assert(is_same_v<result_of_t<PF1()>, bool>);
static_assert(is_same_v<result_of_t<PMF(unique_ptr<S>, int)>, void>);
static_assert(is_same_v<result_of_t<PMD(S)>, char&&>);
static_assert(is_same_v<result_of_t<PMD(const S*)>, const char&>);
\end{codeblock}
\end{example}

Expand Down