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

Name

Description

error_code

A system error code as given by errno.

message

The message describing the operation that failed.

Created with MrDocs