
10 Sep
2002
10 Sep
'02
4:20 p.m.
"Peter Dimov"
From: "Douglas Gregor"
safe_bool operator!() const { return (!this->empty())? 0 : &dummy::nonnull<int>; }
This is not related to the problem you are discussing, but operator! can (and probably should) return an ordinary bool.
So bool operator!() const { return !this->empty(); } should be OK? ... two minutes later ... Arghalskfvbafg1q24584%&§/(%§&$%&?!?! CW now gives me the same error in operator safe_bool() ... -- Free Crypto Token - FCT www.FreeCryptoToken.org