Skip to content

Commit

Permalink
workaround MSVC bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed May 10, 2022
1 parent a60c7db commit 90b8b31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/llama/ArrayExtents.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ namespace llama

/// N-dimensional ArrayExtents where all values are dynamic.
template<std::size_t N, typename SizeType = std::size_t>
using ArrayExtentsDynamic = ArrayExtentsNCube<N, static_cast<SizeType>(dyn)>;
using ArrayExtentsDynamic
= ArrayExtentsNCube<N, static_cast<SizeType>(-1 /*dyn*/)>; // VS2019/VS2022 cannot handle dyn here

template<typename SizeType, std::size_t Dim, typename Func, typename... OuterIndices>
LLAMA_FN_HOST_ACC_INLINE void forEachADCoord(
Expand Down

0 comments on commit 90b8b31

Please sign in to comment.