diff --git a/include/aws/crt/Variant.h b/include/aws/crt/Variant.h index 2858ae951..f973316e6 100644 --- a/include/aws/crt/Variant.h +++ b/include/aws/crt/Variant.h @@ -473,7 +473,8 @@ namespace Aws } else { - VisitorUtil::Visit(pThis, std::forward(visitor)); + VisitorUtil(Index + 1), Second, Rest...>::Visit( + pThis, std::forward(visitor)); } } @@ -490,7 +491,7 @@ namespace Aws } else { - VisitorUtil::VisitBinary( + VisitorUtil(Index + 1), Second, Rest...>::VisitBinary( pThis, std::forward>(other), std::forward(visitor)); } } @@ -509,7 +510,7 @@ namespace Aws } else { - VisitorUtil::VisitBinary( + VisitorUtil(Index + 1), Second, Rest...>::VisitBinary( pThis, other, std::forward(visitor)); } }