Skip to content

Commit

Permalink
Fixed declaration of 'xxx' hides global declaration (#10733)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyachur committed Mar 2, 2022
1 parent 40fc533 commit d3ded2f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/inference/include/openvino/runtime/properties.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()};
}
Expand Down

0 comments on commit d3ded2f

Please sign in to comment.