Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-02-19 11:12:13


"Beman Dawes" <bdawes_at_[hidden]> writes:

> Fresh draft up at www.esva.net/~beman/error_reporting_guidelines.html.
>
> This tries to incorporate concerns, comments, and suggestions from Eric
> Niebler, Dave Abrahams, and John Maddock.
>
> Further comments welcome,

Did you consider making system_error_code_type a wrapper that will
assert upon destruction if its value hasn't been inspected? That will
detect one of the most common problems with non-exception error
reporing: forgetting to check the error code.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk