Skip to content

Commit

Permalink
Add constraint for BinaryOperation to reduce overloads
Browse files Browse the repository at this point in the history
ChangeLog:

	* P1928/changelog.tex:
	* P1928/wording.tex:
  • Loading branch information
mattkretz committed Oct 2, 2023
1 parent 4fdf826 commit 22f1b48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions P1928/changelog.tex
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,6 @@ \section{Changelog}
\item Update section on \code{size_t} vs. \code{int} usage (\sect{sec:simdsizetype}).
\item Remove all open design questions, leaving LWG / wording questions.
\item Add LWG question on implementation note (\sect{sec:implnote}).
\item Add constraint for \code{BinaryOperation} to \code{reduce} overloads (\ref{sec:simd.reductions}).
% \todo Add \code{numeric_limits} / numeric traits specializations since behavior of e.g. \code{simd<float>} and \code{float} may differ for reasonable implementations.
\end{revision}
6 changes: 6 additions & 0 deletions P1928/wording.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,9 @@
\end{itemdecl}

\begin{itemdescr}
\pnum\constraints
\tcode{BinaryOperation} satisfies \tcode{invocable<simd<T, 1>, simd<T, 1>>}.

\pnum\mandates
\tcode{binary_op} can be invoked with two arguments of type
\tcode{basic_simd<T, A1>} returning \tcode{basic_simd<T, A1>} for every
Expand All @@ -1151,6 +1154,9 @@
\end{itemdecl}

\begin{itemdescr}
\pnum\constraints
\tcode{BinaryOperation} satisfies \tcode{invocable<simd<T, 1>, simd<T, 1>>}.

\pnum\mandates
\tcode{binary_op} can be invoked with two arguments of type \tcode{basic_simd<T, A1>} returning \tcode{basic_simd<T, A1>} for every \tcode{A1} that is an ABI tag type.

Expand Down

0 comments on commit 22f1b48

Please sign in to comment.