Dear all, I have been away from c++ for a while and I have just got back and started reading about "c++ concurrency in action".
I found an example where the author gives function witch returns thread instance but I can not understand how you can declare a function in a function definition:
std::thread f()
{
void some_function();
return std::thread(some_function);
}
std::thread g()
{
void some_other_function(int);
std::thread t(some_other_function,42);
return t;
}