[mythtv] C++ style

Jens Lohmann-Hansen jenslh at adslhome.dk
Wed Feb 11 14:24:29 EST 2004


On Wednesday 11 February 2004 20:02, Paul Woodward wrote:
> > On Wednesday 11 February 2004 13:25, steve at nexusuk.org wrote:
[...]
> > 	if (somevar == ++i)
> > is definitely different than
> > 	if (somevar == i++)
>
> I don't think even Microsoft could come up with up with a compiler that
> generates such poor code that it takes a significant time to INC a register
> on an nGhz chip!

I'm sure others will point this out - but you can overload operators in C++; 
so the "INC a register" seems a bit narrowminded to me.

/Jens


More information about the mythtv-dev mailing list