Skip to content

Commit

Permalink
Fix TArrayExtents::rankStatic being inaccessible in SOA
Browse files Browse the repository at this point in the history
MSVC claims that it cannot access `TArrayExtents::rankStatic` inside the
implementation of SoA because `MappingBase` privately inherits from
`TArrayExtents`. This actually seems right, but gcc compiles fine. This
change fixes the issue for MSVC.
  • Loading branch information
bernhardmgruber committed Feb 24, 2023
1 parent 5c5c3b5 commit 1d9a110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/llama/mapping/Common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace llama::mapping
{
template<typename TArrayExtents, typename TRecordDim>
struct MappingBase : private TArrayExtents
struct MappingBase : protected TArrayExtents
{
using ArrayExtents = TArrayExtents;
using ArrayIndex = typename ArrayExtents::Index;
Expand Down

0 comments on commit 1d9a110

Please sign in to comment.