Skip to content

Commit

Permalink
Work around vector friend operator accesses (MSVC)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterTh committed Dec 21, 2023
1 parent f3ba262 commit 00549dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/simsycl/sycl/vec.hh
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,10 @@ 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(_MSC_VER)
public:
#endif
DataT m_elems[num_storage_elems]{};
}; // namespace simsycl::sycl

Expand Down

0 comments on commit 00549dc

Please sign in to comment.