safe_duration_cast icon indicating copy to clipboard operation
safe_duration_cast copied to clipboard

Suggestion: throw system_error instead of runtime_error

Open ecorm opened this issue 4 years ago • 0 comments

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.

ecorm avatar Apr 07 '21 03:04 ecorm