[core] Replace seq<>/gens<> with std::index_sequence for code clarity

This commit is contained in:
J. Nick Koston
2025-11-15 12:04:49 -06:00
parent b7f6013378
commit d7892f2289
+1
View File
@@ -13,6 +13,7 @@ namespace esphome {
// C++20 std::index_sequence is now used for tuple unpacking
// Legacy seq<>/gens<> pattern deprecated but kept for backwards compatibility
// https://stackoverflow.com/questions/7858817/unpacking-a-tuple-to-call-a-matching-function-pointer/7858971#7858971
// Remove before 2026.6.0
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push