Merge pull request #26603 from asmorkalov:as/no_struct_binding

Replace structured binding for better compilers support
This commit is contained in:
Alexander Smorkalov 2024-12-10 12:13:14 +03:00 committed by GitHub
commit 633ca0d6eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);