SFML community forums

General => SFML website => Topic started by: model76 on May 17, 2012, 01:50:00 pm

Title: SFML 2 Threads tutorial typo
Post by: model76 on May 17, 2012, 01:50:00 pm
I see you have started uploading tutorials for SFML 2. Great!

Here is your first bug report:

From Threads tutorial:
// with lambdas
sf::Thread thread([](){
    std::cout << "I am in thread!" << std::endl;
});

I suppose you meant to be using the same coding style throughout. :)
Title: Re: SFML 2 Threads tutorial typo
Post by: Nexus on May 17, 2012, 02:23:32 pm
Where exactly is the mistake?
Title: Re: SFML 2 Threads tutorial typo
Post by: model76 on May 17, 2012, 04:46:05 pm
In my head, it seems. I somehow thought it was a function implementation, but now I see it is not.

I didn't actually read the context, and it shows. Sorry.  :-[

But on the up-side, I guess this shows that the new coding style is working! :)