Re: Is there any difference between using {} and not using them?
Quote:
Originally Posted by
Zaccheus
Oh but it does!
Code:
int f(int a)
{
struct Local
{
inline static int g(int x)
{
return x * x;
}
};
return Local::g(a) * Local::g(a);
}
I've used this in the past for very simple helper functions.
:D
Yes, but that's not true nested functions ;)