Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[parallel.simd.reference] Fix swap value_type params to be lvalues
In the class definition of `simd::reference` the `value_type` parameters for `swap()` are rvalue references. This does not make sense; `swap()` must accept lvalue-references to `value_type` to be able to exchange the referred values. The detailed description of `swap()` in §16 already correctly uses lvalue-references for the `value_type` parameters. Also, http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0214r9.pdf uses lvalue-reference `value_type` parameters already in the `swap()` declaration in the definition of the `simd::reference` class.
- Loading branch information