Answer the question
In order to leave comments, you need to log in
Function declaration inside a function?
How can I declare a function inside a function, so that the compiler would not swear (Visual Studio Express);
For example in javascript it looks like this:
function func1() {
...
function func2() {
...
}
}
Answer the question
In order to leave comments, you need to log in
int func1() {
auto func2 = []() { return 42; };
return func2();
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question