fmt::report_system_error

Reports a system error without throwing an exception. Can be used to report errors from destructors.

Synopsis

Declared in <fmt/format.h>

void
report_system_error(
    int error_code,
    char const* message) noexcept;

Parameters

NameDescription
error_codeA system error code as given by errno.
messageThe message describing the operation that failed.