Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2006-02-17 16:42:44


Beman Dawes wrote:

> Do other Boosters like the idea of an overall guideline for dealing with
> operating system API error reporting?

Sure.

> Do the specific guidelines make sense? How can they be improved?

What about system calls that fail in a constructor? Providing a no-throw
constructor that could leave an object in an invalid state can make it
much more difficult to reason about program correctness. What is the
recommendation in this case?

Some people may want to make the exception-throwing versions unavailable
to guarantee they don't accidentally call one. There should be a
recommended way of doing that (eg., a standard PP macro).

-- 
Eric Niebler
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