On Sunday, July 07, 2013 14:30:12 Iain Buclaw wrote:
> On 6 July 2013 22:41, Jonathan M Davis <jmdavisp...@gmx.com> wrote:
> > On Saturday, July 06, 2013 14:13:29 H. S. Teoh wrote:
> >> Shouldn't the frame pointer be generated only if f() actually tries to
> >> access something outside of the definition of T?
> > 
> > Probably, but that's arguably an optimization. Regardless, marking it as
> > static will force the issue.
> 
> An optimization that is on similar boundaries as virtual by default. :)

Indeed, though the compiler has a much better chance of determining that a 
nested function can be made static than determining that a virtual function 
can be made non-virtual.

- Jonathan M Davis

Reply via email to