From e8c3899d8f18d4ffe4802c7a85ca2050d24f768c Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Mon, 18 Jan 2021 07:57:37 +1100 Subject: [PATCH] Testing CI for structured bindings --- src/attack_prediction.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/attack_prediction.cpp b/src/attack_prediction.cpp index 0a67e9aaa9b40..63693c9aabcd0 100644 --- a/src/attack_prediction.cpp +++ b/src/attack_prediction.cpp @@ -875,8 +875,7 @@ void prob_matrix::clear() continue; } - decltype(used_rows_[p].begin()) first_row, last_row; - std::tie(first_row, last_row) = std::minmax_element(used_rows_[p].begin(), used_rows_[p].end()); + auto [first_row, last_row] = std::minmax_element(used_rows_[p].begin(), used_rows_[p].end()); for(unsigned int r = *first_row; r <= *last_row; ++r) { for(unsigned int c = 0u; c < cols_; ++c) { plane_[p][r * cols_ + c] = 0.0;