Skip to content

Commit

Permalink
simplify fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Jul 3, 2024
1 parent 47a6cbc commit dd735f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/aws/crt/Variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ namespace Aws
}
else
{
VisitorUtil<Index + 1, Second, Rest...>::Visit(pThis, std::forward<VisitorStruct>(visitor));
VisitorUtil<static_cast<IndexT>(Index + 1), Second, Rest...>::Visit(pThis, std::forward<VisitorStruct>(visitor));
}
}

Expand All @@ -490,7 +490,7 @@ namespace Aws
}
else
{
VisitorUtil<Index + 1, Second, Rest...>::VisitBinary(
VisitorUtil<static_cast<IndexT>(Index + 1), Second, Rest...>::VisitBinary(
pThis, std::forward<Variant<Ts...>>(other), std::forward<VisitorStruct>(visitor));
}
}
Expand All @@ -509,7 +509,7 @@ namespace Aws
}
else
{
VisitorUtil<Index + 1, Second, Rest...>::VisitBinary(
VisitorUtil<static_cast<IndexT>(Index + 1), Second, Rest...>::VisitBinary(
pThis, other, std::forward<VisitorStruct>(visitor));
}
}
Expand Down

0 comments on commit dd735f2

Please sign in to comment.