Boost logo

Boost :

From: Richard Hadsell (hadsell_at_[hidden])
Date: 2002-11-04 13:35:59


Peter Dimov wrote:
>
> From: "Daniel Frey" <daniel.frey_at_[hidden]>
>
> > What is wrong with:
> >
> > class A
> > {
> > private:
> > operator int() const;
> >
> > public:
> > operator bool() const { return ...; }
> >
> > };
>
> Nothing, I think. Who invented it?

Maybe he didn't like the result when you output the scoped_ptr to cout without
an explicit conversion (e.g., using the get() member function). I'll bet that
someone out there is saying, "Oh, no! Do we have to go through this discussion
again?"

-- 
Dick Hadsell			914-259-6320  Fax: 914-259-6499
Reply-to:			hadsell_at_[hidden]
Blue Sky Studios                http://www.blueskystudios.com
44 South Broadway, White Plains, NY 10601

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk