Skip to content

Commit 506e8f6

Browse files
committed
Eliminate mistakenly applied noexcept from copy_to & copy_from
Add Throws clause to copy_from Fixes #68
1 parent 69156d5 commit 506e8f6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/simd.tex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@
481481
T operator+() const && noexcept;
482482
T operator~() const && noexcept;
483483

484-
template<class U, class Flags> void copy_to(U* mem, Flags f) const && noexcept;
484+
template<class U, class Flags> void copy_to(U* mem, Flags f) const &&;
485485
};
486486

487487
template<class M, class T>
@@ -504,7 +504,7 @@
504504
void operator--() && noexcept;
505505
void operator--(int) && noexcept;
506506

507-
template<class U, class Flags> void copy_from(const U* mem, Flags) && noexcept;
507+
template<class U, class Flags> void copy_from(const U* mem, Flags) &&;
508508
};
509509
\end{codeblock}
510510

@@ -543,7 +543,7 @@
543543
\end{itemdescr}
544544

545545
\begin{itemdecl}
546-
template<class U, class Flags> void copy_to(U* mem, Flags) const && noexcept;
546+
template<class U, class Flags> void copy_to(U* mem, Flags) const &&;
547547
\end{itemdecl}
548548

549549
\begin{itemdescr}
@@ -619,7 +619,7 @@
619619
\end{itemdescr}
620620

621621
\begin{itemdecl}
622-
template<class U, class Flags> void copy_from(const U* mem, Flags) && noexcept;
622+
template<class U, class Flags> void copy_from(const U* mem, Flags) &&;
623623
\end{itemdecl}
624624

625625
\begin{itemdescr}
@@ -632,6 +632,8 @@
632632
\pnum\effects
633633
Replaces the selected elements as if \tcode{data[$i$] = static_cast<value_type>(mem[$i$])} for all selected indices $i$.
634634

635+
\pnum\throws Nothing.
636+
635637
\pnum\remarks
636638
This function shall not participate in overload resolution unless
637639
\begin{itemize}

0 commit comments

Comments
 (0)