Skip to content

Commit

Permalink
Fix typo in variant
Browse files Browse the repository at this point in the history
  • Loading branch information
sbiscigl committed Aug 23, 2024
1 parent dca3cd9 commit e69d8cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/aws/crt/Variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace Aws
{
using VariantIndex = short;

template <typename T, typename Last> constexpr VariantIndex GetIndexOf(VariantIndex curIndex = -1)
template <typename T, typename Last> constexpr VariantIndex GetIndexOf(VariantIndex curIndex = 0)
{
return std::is_same<T, Last>::value ? curIndex : -1;
}
Expand Down

0 comments on commit e69d8cc

Please sign in to comment.