safe_duration_cast icon indicating copy to clipboard operation
safe_duration_cast copied to clipboard

Like std::chrono::duration_cast, but without the undefined behaviour

Results 3 safe_duration_cast issues
Sort by recently updated
recently updated
newest added

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.

This should eliminate code paths already at compile time.