Boost logo

Boost :

From: Jeff Paquette (paquette_at_[hidden])
Date: 2000-10-10 15:54:34


Very nice :) As usual, it won't work correctly with VC6 during stack
unwinding as std::uncaught_exception() always returns false on that
platform.

--
Jeff Paquette
paquette at mediaone.net
http://www.atnetsend.net
> -----Original Message-----
> From: Gary Powell [mailto:Gary.Powell_at_[hidden]]
> Sent: Tuesday, October 10, 2000 4:51 PM
> To: 'boost_at_[hidden]'
> Subject: RE: [boost] operator++
>
>
> > [i've been only reading this group for two days,
> > so this might be silly -- forgive/flame me]
> No way! This is sooo cool.
> The only question I have is whether by doing this "out of order"
> breaks some
> other requirement of operator++(int); Otherwise I'm off to update my code.
>
>   BTW where did you dream this bit up?
>
>   Yours,
>   -gary-
>
> gary.powell_at_[hidden]
>
> PS
>   In case you didn't follow the code, as I read it the proxy allows any
> assignment to happen before the increment thus avoiding the need of a
> secondary construction of the object of type T. And as a bonus if there
> isn't an assignment as in for(Type i; i test; i++) vs ++i, it has the same
> level of efficency! (assuming that the compiler does at least the inlining
> correctly.)
>
>
>

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