[libcxx-commits] [libcxx] [libc++] <experimental/simd> Add assignment operator of simd reference (PR #70020)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 24 03:36:52 PDT 2023
================
@@ -44,6 +44,13 @@ class __simd_reference {
__simd_reference(const __simd_reference&) = delete;
_LIBCPP_HIDE_FROM_ABI operator value_type() const noexcept { return __get(); }
+
+ template <class _Up>
+ _LIBCPP_HIDE_FROM_ABI std::enable_if_t<__reference_well_formed<value_type, _Up>, __simd_reference>
+ operator=(_Up&& __v) && noexcept {
----------------
philnik777 wrote:
```suggestion
template <class _Up, enable_if_t<__reference_well_formed<value_type, _Up>, int> = 0>
_LIBCPP_HIDE_FROM_ABI __simd_reference
operator=(_Up&& __v) && noexcept {
```
https://github.com/llvm/llvm-project/pull/70020
More information about the libcxx-commits
mailing list