ews-cpp
ews-cpp copied to clipboard
numeric_cast will never throw
Check in numeric_cast will never throw, as after the cast to the TargetType the value will never be greater than the maximum of the TargetType: if (static_cast<TargetType>(value) > std::numeric_limits<TargetType>::max()) { throw std::overflow_error("Cannot convert "); }
@obatysh You are right! We will fix this. Thanks!