|Subject:||Re: CC-mode highlight change between 24.5 and 25|
|Date:||Fri, 2 Sep 2016 11:21:44 -0600|
|User-agent:||Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2|
I think it very uncommon to declare a function inside another function in C++: it's done in top-level instead.Is it even valid C++?
Yes. It is a GCC extension to _define_ a function inside another (unless the inner function is nested inside a class defined in the outer function), but it is strictly conforming to declare one in C or in C++. (The function so-declared is indistinguishable from one declared in the enclosing file/namespace scope, except that its name is invisible outside the function containing the declaration.)
Davis --This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.
|[Prev in Thread]||Current Thread||[Next in Thread]|