I\'m a const fiend, and I strive to make everything as const as possible.
I\'ve tried looking at various dissassembly outputs from const and non const versions of fu
As far as I know, the only effect of marking a function const is to allow the function to be called on a const
object. There's no optimization benefit.
Herb Sutter has an article which discusses const and optimization in depth:
The one area that const
is useful at the machine level is when applied to data - const data might be able to be placed in non-writable memory.