Skip to content

Commit

Permalink
Fix ambiguity in VirtualRecord::operator() overload set
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jun 16, 2022
1 parent f02a791 commit 9f39893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/llama/VirtualRecord.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ namespace llama
/// the access resolves to a leaf, a reference to a variable inside the \ref View storage is returned,
/// otherwise another virtual record.
template<std::size_t... Coord>
LLAMA_FN_HOST_ACC_INLINE auto operator()(RecordCoord<Coord...> = {}) const -> decltype(auto)
LLAMA_FN_HOST_ACC_INLINE auto operator()(RecordCoord<Coord...>) const -> decltype(auto)
{
using AbsolutCoord = Cat<BoundRecordCoord, RecordCoord<Coord...>>;
using AccessedType = GetType<RecordDim, AbsolutCoord>;
Expand All @@ -417,7 +417,7 @@ namespace llama

// FIXME(bgruber): remove redundancy
template<std::size_t... Coord>
LLAMA_FN_HOST_ACC_INLINE auto operator()(RecordCoord<Coord...> = {}) -> decltype(auto)
LLAMA_FN_HOST_ACC_INLINE auto operator()(RecordCoord<Coord...>) -> decltype(auto)
{
using AbsolutCoord = Cat<BoundRecordCoord, RecordCoord<Coord...>>;
using AccessedType = GetType<RecordDim, AbsolutCoord>;
Expand Down

0 comments on commit 9f39893

Please sign in to comment.