Function urcl::strerror_portable
Defined in File log.h
Function Documentation
-
inline std::string urcl::strerror_portable(int errnum)
Cross-platform replacement for strerror.
On MSVC, strerror triggers C4996 (deprecated). This function uses std::error_code instead, which is portable and thread-safe.
- Parameters:
errnum – Error number (typically errno)
- Returns:
Human-readable error message