From 00549dc7ece6757fdd24d2b13282342fae993f56 Mon Sep 17 00:00:00 2001 From: Peter Thoman Date: Thu, 21 Dec 2023 12:59:53 +0100 Subject: [PATCH] Work around vector friend operator accesses (MSVC) --- include/simsycl/sycl/vec.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/simsycl/sycl/vec.hh b/include/simsycl/sycl/vec.hh index d83c87d..1b2e4bd 100644 --- a/include/simsycl/sycl/vec.hh +++ b/include/simsycl/sycl/vec.hh @@ -428,6 +428,10 @@ class alignas(detail::vec_alignment_v) vec { constexpr static int num_storage_elems = NumElements == 3 ? 4 : NumElements; + // Workaround for friend templates in earlier MSVC versions; TODO: remove when we drop support for them +#if defined(_MSC_VER) + public: +#endif DataT m_elems[num_storage_elems]{}; }; // namespace simsycl::sycl