From fce6e7b408d26dc7619b0b12e0cf2328d494db30 Mon Sep 17 00:00:00 2001 From: Dmitriy Musatkin <63878209+DmitriyMusatkin@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:27:41 -0700 Subject: [PATCH] make variant index casts more explicit (#635) --- include/aws/crt/Variant.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)); } }