From: Gary Powell (Gary.Powell_at_[hidden])
Date: 2000-10-10 15:50:34


> [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.)