Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

05-09-2022 , 12:10 PM
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
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m