diff --git a/include/etl/private/variant_variadic.h b/include/etl/private/variant_variadic.h index e57b9324..91181126 100644 --- a/include/etl/private/variant_variadic.h +++ b/include/etl/private/variant_variadic.h @@ -1638,7 +1638,7 @@ namespace etl template void do_visitor_at(TVisitor& visitor, etl::index_sequence) { - if (this->index() == Index) + if (Index == index()) { visitor.visit(etl::get(*this)); } @@ -1647,7 +1647,7 @@ namespace etl template void do_visitor_at(TVisitor& visitor, etl::index_sequence) const { - if (this->index() == Index) + if (Index == index()) { visitor.visit(etl::get(*this)); } @@ -1659,7 +1659,7 @@ namespace etl template void do_visitor_at(TVisitor& visitor, etl::index_sequence) { - if (this->index() == Index) + if (Index == index()) { visitor.visit(etl::get(*this)); } @@ -1675,7 +1675,7 @@ namespace etl template void do_visitor_at(TVisitor& visitor, etl::index_sequence) const { - if (this->index() == Index) + if (Index == index()) { visitor.visit(etl::get(*this)); } @@ -1768,7 +1768,7 @@ namespace etl template void do_operator_at(TVisitor& visitor, etl::index_sequence) { - if (this->index() == Index) + if (Index == index()) { visitor(etl::get(*this)); } @@ -1777,7 +1777,7 @@ namespace etl template void do_operator_at(TVisitor& visitor, etl::index_sequence) const { - if (this->index() == Index) + if (Index == index()) { visitor(etl::get(*this)); } @@ -1789,7 +1789,7 @@ namespace etl template void do_operator_at(TVisitor& visitor, etl::index_sequence) { - if (this->index() == Index) + if (Index == index()) { visitor(etl::get(*this)); } @@ -1805,7 +1805,7 @@ namespace etl template void do_operator_at(TVisitor& visitor, etl::index_sequence) const { - if (this->index() == Index) + if (Index == index()) { visitor(etl::get(*this)); }