[libcxx-commits] [libcxx] [libc++] <experimental/simd> Add unary operators for class simd (PR #104764)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Sep 8 07:54:47 PDT 2024
================
@@ -44,6 +58,10 @@ class simd {
_LIBCPP_HIDE_FROM_ABI simd() noexcept = default;
+ // explicit conversion from and to implementation-defined types
+ explicit _LIBCPP_HIDE_FROM_ABI operator _Storage() const;
+ explicit _LIBCPP_HIDE_FROM_ABI simd(const _Storage& __s) : __s_(__s) {}
----------------
philnik777 wrote:
I think we should do this with an explicit member and a constructor with a tag type instead. Otherwise people are going to start relying on it. Also, why is the conversion operator not implemented?
https://github.com/llvm/llvm-project/pull/104764
More information about the libcxx-commits
mailing list