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