Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterTh committed Dec 21, 2023
1 parent b979841 commit 842d61a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/simsycl/sycl/vec.hh
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,15 @@ class alignas(detail::vec_alignment_v<DataT, NumElements>) 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(_MSVC_VER) && _MSVC_VER < 1930
friend vec<bool, 1>;
friend vec<bool, 2>;
friend vec<bool, 3>;
friend vec<bool, 4>;
#endif

DataT m_elems[num_storage_elems]{};
}; // namespace simsycl::sycl

Expand Down

0 comments on commit 842d61a

Please sign in to comment.