safe_duration_cast
safe_duration_cast copied to clipboard
Suggestion: throw system_error instead of runtime_error
May I suggest that you throw a std::system_error instead of a std::runtime_error? That way, the std::system_error could encapsulate the std::error_code that would normally be returned via the alternate API.