SFML community forums

Help => General => Topic started by: OniLinkPlus on April 24, 2010, 08:11:24 am

Title: Rvalues and Move Semantics for SFML2?
Post by: OniLinkPlus on April 24, 2010, 08:11:24 am
So, Laurent, as I'm sure you've heard, C++0x will Rvalues and Move Semantics for easy binding of variables to temporaries so that temporaries can be used outside of where they were defined(from what I can tell), and I remember you were having trouble with sf::View and temporaries, so I have a suggestion.
When C++0x is officially released, why not use the Rvalues to solve the problem with temporary views?
Title: Rvalues and Move Semantics for SFML2?
Post by: Laurent on April 24, 2010, 10:19:38 am
I can't use C++11 features since SFML has to be compatible with a lot of compilers, not just the newest ones.

Views are not a problem anymore in SFML 2, they are now passed by value and copied in render targets.