From c25f8024c074d05d02666016b29bfece246aa2c7 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Tue, 10 Dec 2024 10:01:08 +0300 Subject: [PATCH] Replace structured binding for better compilers support. --- modules/dnn/src/tensorflow/tf_importer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/dnn/src/tensorflow/tf_importer.cpp b/modules/dnn/src/tensorflow/tf_importer.cpp index d8f9150128..6d609171b7 100644 --- a/modules/dnn/src/tensorflow/tf_importer.cpp +++ b/modules/dnn/src/tensorflow/tf_importer.cpp @@ -678,8 +678,8 @@ void TFImporter::addLayer(const std::string& name, const std::string& type, Laye { Pin inp = parsePin(inputs[i]); if (layer_id.find(inp.name) == layer_id.end()) { - for (const auto& [key, value] : layer_id) - std::cout << '[' << key << "] = " << value << "; "; + for (const auto& l : layer_id) + std::cout << '[' << l.first << "] = " << l.second << "; "; CV_Error(Error::StsError, "Input layer not found: " + inp.name); } connect(layer_id, dstNet, inp, id, i);