51
General Discussion about just::thread / Re: Lambda functions
« Last post by Anthony Williams on July 27, 2012, 08:30:04 AM »Yes, if your compiler supports lambda functions (e.g. MSVC2010, g++ 4.6) then you can use them with the library. e.g.
Code: [Select]
std::thread t(
[]{
do_something();
do_something_else();
});