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 26, 2024
1 parent 8a9da3b commit 00b6e9a
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 00b6e9a

Please sign in to comment.