You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
İt does not work.
I think function declaration and object creation are mixed in function "f()" this line needs extra parentheses:
scoped_thread t(std::thread(func(some_local_state)));
should be
scoped_thread t((std::thread(func(some_local_state))));
or
scoped_thread t{std::thread(func(some_local_state))};
The text was updated successfully, but these errors were encountered:
demucin
changed the title
Function f in listing_2.6 needs extra parentheses
Function f() in listing_2.6 needs extra parentheses
Oct 8, 2021
Hello,
İt does not work.
I think function declaration and object creation are mixed in function "f()" this line needs extra parentheses:
scoped_thread t(std::thread(func(some_local_state)));
should be
scoped_thread t((std::thread(func(some_local_state))));
or
scoped_thread t{std::thread(func(some_local_state))};
The text was updated successfully, but these errors were encountered: