if constexpr()

in code/include/swoc/Scalar.h [47:53]


  if constexpr (N == S) {
    return c;
  } else if constexpr (R::den == 1) {
    return c / R::num + (0 != c % R::num); // N is a multiple of S.
  } else if constexpr (R::num == 1) {
    return c * R::den; // S is a multiple of N.
  }