-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Darren New wrote: > Christopher Smith wrote: >> Right, but if you overload operator[] to do bounds checking on the >> array, and you get array_size from the same original source that >> operator[] checks against, the compiler will recognize the operation is >> redundant and remove it. > > Hmmm... Maybe, yah. I suspect you'd still have to inline both of those > for that to work.
Fortunately... that decision is up to the optimizer. ;-) - --Chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGcLOrOagjPOywMBARAucxAKCjTUl74Um/tlkB81QmYzgxnuG7bQCbBw/s egZHRildciqS5GOxa1D13pk= =yqhx -----END PGP SIGNATURE----- -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
