
27 Feb
2010
27 Feb
'10
10:59 p.m.
AMDG Daniel Trebbien wrote:
What is the safe_bool stuff for; or, why have you implemented `operator sb_type() const` rather than `operator bool() const` for evaluating a `resource` as a `bool`?
This is a common idiom to prevent problems from the fact that bool can convert to int. In Christ, Steven Watanabe