Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2000-10-10 17:00:52


----- Original Message -----
From: "Gary Powell" <Gary.Powell_at_[hidden]>

> Dang! Isn't it Wednesday somewhere....And now that you mention it, I've
used
> this rule to keep things from doing an unwanted implicit conversion. (It
was
> in one of Meyer's books, I think the first one.)
>
> I suppose a member template converter would make a bigger mess of things
> as well right? (ambiguous conversions etc.) (Or it won't be even called
> because of rule #1?)
>
> class proxy {
> public:
> template<class S>
> operator S () { return S(real) ; } // makes the copy.
> ...
> };
>

That might work but it would still fail Howard's test, which requires that i
and ++i have the same type.

still-tuesday-in-my-part-of-the-world-ly y'rs,
dave


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