Skip to content

Instantly share code, notes, and snippets.

View dietmarkuehl's full-sized avatar

Dietmar Kühl dietmarkuehl

View GitHub Profile
@dietmarkuehl
dietmarkuehl / errocodeNX.md
Last active August 2, 2017 07:26 — forked from patrickmmartin/errocodeNX.md
error_code article

Defining and Using a Symbol Analogue for Error Reporting in C++

Abstract

The use of exceptions isn't a viable error handling approach in all cases and returning codes for error handling is sometimes preferable. However, using integral types for error identification is problematic as there is no good mechanism to guarantee that each value uniquely