I was reading the linked question which leads me to ask this question.
Consider the following code
int main() { string SomeString(); } >
int main() { string SomeString(); }
Just as a side note, C++03 does have a roundabout way of defining local functions. It requires abusing the local-class feature:
int main() { struct Local { static string Some() { return ""; } }; std::cout << Local::Some() << std::endl; }