in reply to Re^3: closures: anonymous subs vs function templates?
in thread closures: anonymous subs vs function templates?
In my function template example, I put the local in front of *inner for just that reason - to limit the scope of inner to the block in which it is defined for the purposes of both limiting access and improving garbage collection.
I appreciated the conversation all of these examples has created. I've learned a few things in the process. I thank all of you who have contributed this analysis.
|
|---|