Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.39 KB

D1977R0.md

File metadata and controls

52 lines (36 loc) · 1.39 KB
title document date audience author toc
LEWG policy on handling errors with OS resource creation
D1977R0
today
Library Evolution
name email
Elias Kosunen
name email
Jeff Garland
name email
Niall Douglas
false

Introduction {#intro}

There are currently multiple proposals in the library evolution pipeline, including [@P1031R2] and [@P1883R0] Low level file i/o library and [@P1750R1] A Proposal to Add Process Management to the C++ Standard Library. During the review of this papers by LEWGI in Belfast (November 2019), it became apparent that it is presently unclear how errors with creating operating system resources are to be handled. Encouraged by LEWGI, this paper attempts to establish clear guidance on this subject matter, for now and for the future.

Once decided, we propose for this policy to become a part of the future LEWG design policy standing document.

Revision History {#history}

R0

Initial release

Overview of present proposals

Process management (P1750)

Low level file i/o (P1031 and P1883)

Design alternatives

Factory function returning a struct containing an error_code

Factory function returning an expected (P0323)

[@P0323R9]

Includes hand-rolled error

Constructor taking an error_code

Throwing exceptions