[Exceptional C++ Style] Exceptional C++ Style - Item 24: ConstantOptimization

Paul Grenyer paul at paulgrenyer.co.uk
Mon Jan 24 07:33:31 EST 2005


Hi Dave

> In this item, Herb raises the question of whether using constant
references
> for the the argument and return types of a function can allow the compiler
> to perform some useful optimization, based somehow on the knowledge that
the
> values are constant.

(snip)

Another excellent summary. It is now on the project page:
http://www.paulgrenyer.dyndns.org/cppstyle/items.php#item24


Regards
Paul

Paul Grenyer
email: paul at paulgrenyer.co.uk
web: http://www.paulgrenyer.co.uk
articles: http://www.paulgrenyer.dyndns.org/articles/

"15 miles to the love shack...."




More information about the Effective-cpp mailing list