Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-09-10 11:28:53


From: "Bertolt Mildner" <Bertolt.Mildner_at_[hidden]>
>>>"Peter Dimov" <pdimov_at_[hidden]> schrieb im Newsbeitrag
news:004301c258e2$cc559850$1d00a8c0_at_pdimov2...
> From: "Douglas Gregor" <gregod_at_[hidden]>
> >
> > 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() ...<<<

I'm curious... Do you get an error when you put boost/shared_ptr.hpp in a
precompiled header?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net