10 Sep
2002
10 Sep
'02
4:33 p.m.
On Tuesday 10 September 2002 12:20 pm, Bertolt Mildner wrote:
Arghalskfvbafg1q24584%&§/(%§&$%&?!?!
CW now gives me the same error in operator safe_bool() ...
\me ponders running out to buy MW 8.2 just to get this working... Yet one more idea (arghhhhh): template<typename T> struct dummy { void nonnull(); }; typedef void (dummy<int>::*safe_bool)(); operator safe_bool() const { return this->empty? 0 : &dummy<int>::nonnull; } bool operator!() const { return this->empty(); } Doug