Skip to content

Commit

Permalink
Fix compile warning regarding ABI changes (openvinotoolkit#20990)
Browse files Browse the repository at this point in the history
and using std::true_type/false_type
  • Loading branch information
praasz authored Nov 13, 2023
1 parent fef0df6 commit c451a94
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,21 +261,21 @@ double lower_bound() {
}

template <typename T>
double lower_bound(std::true_type, double exponent) {
double lower_bound(double exponent, std::true_type) {
return Function<ngraph::opset8::Power>::lower_bound(exponent);
}

template <typename T>
double lower_bound(std::false_type, double exponent) {
double lower_bound(double exponent, std::false_type) {
throw std::runtime_error("Not supported");
}

template <typename T>
double lower_bound(double exponent) {
return lower_bound<T>(
exponent,
std::integral_constant < bool,
std::is_same<T, ngraph::opset8::Power>::value || std::is_same<T, ngraph::op::PowerIE>::value > (),
exponent);
std::is_same<T, ngraph::opset8::Power>::value || std::is_same<T, ngraph::op::PowerIE>::value > ());
}

template <typename T>
Expand Down

0 comments on commit c451a94

Please sign in to comment.