constexpr PixelType maxVal = std::numeric_limits<PixelType>::max();
constexpr double lnFactor = std::log(maxVal);
Second line gives error C2131: expression did not evaluate to a constant
Why? Can this be rephrased so it compiles?
constexpr PixelType maxVal = std::numeric_limits<PixelType>::max();
constexpr double lnFactor = std::log(maxVal);
Second line gives error C2131: expression did not evaluate to a constant
Why? Can this be rephrased so it compiles?