
17 Feb
2006
17 Feb
'06
9:42 p.m.
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