Just reiterating what muttiah said - looking at the documentation for packaged_task:
https://en.cppreference.com/w/cpp/thread/packaged_task
The "bool()" as the template parameter just means that LoadSaveGame is declared as a function taking no arguments and returning type bool, eg:
Code:
bool LoadSaveGame ()
{
// Function Body
}
it would be "bool(int, int)" for a function like this:
Code:
bool LoadSaveGame (int a, int b)
{
// Function Body
}
it would be "void(int, int)" for a function like this:
Code:
void LoadSaveGame (int a, int b)
{
// Function Body
}
Juk