[libcxx-commits] [libcxx] [libc++] <experimental/simd> Add ++/-- operators for simd reference (PR #88091)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 7 02:18:47 PDT 2024
================
@@ -60,6 +61,32 @@ class __simd_reference {
return {__s_, __idx_};
}
+ template <class _Up = value_type, class = decltype(std::declval<_Up>() + _Up{1})>
----------------
philnik777 wrote:
```suggestion
template <class _Up = value_type, class = decltype(std::declval<_Up>()++)>
```
Otherwise floating point types would have a `++`. Please add a test to make sure that's not the case.
https://github.com/llvm/llvm-project/pull/88091
More information about the libcxx-commits
mailing list