From d3ded2fc3619c487d5762dbe78303cb082d82123 Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Wed, 2 Mar 2022 16:01:21 +0300 Subject: [PATCH] Fixed declaration of 'xxx' hides global declaration (#10733) --- .../include/openvino/runtime/properties.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/inference/include/openvino/runtime/properties.hpp b/src/inference/include/openvino/runtime/properties.hpp index 7a3e7e0136c9a5..b63d7d04f6f2c4 100644 --- a/src/inference/include/openvino/runtime/properties.hpp +++ b/src/inference/include/openvino/runtime/properties.hpp @@ -673,27 +673,27 @@ static constexpr Num NUMA{ -2}; //!< Creates as many streams as needed to accommodate NUMA and avoid associated penalties /** @cond INTERNAL */ -inline std::ostream& operator<<(std::ostream& os, const Num& num) { - switch (num) { +inline std::ostream& operator<<(std::ostream& os, const Num& num_val) { + switch (num_val) { case AUTO: return os << "AUTO"; case NUMA: return os << "NUMA"; default: - return os << num.num; + return os << num_val.num; } } -inline std::istream& operator>>(std::istream& is, Num& num) { +inline std::istream& operator>>(std::istream& is, Num& num_val) { std::string str; is >> str; if (str == "AUTO") { - num = AUTO; + num_val = AUTO; } else if (str == "NUMA") { - num = NUMA; + num_val = NUMA; } else { try { - num = {std::stoi(str)}; + num_val = {std::stoi(str)}; } catch (const std::exception& e) { throw ov::Exception{std::string{"Could not read number of streams from str: "} + str + "; " + e.what()}; }