Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Rvalues and Move Semantics for SFML2?  (Read 1284 times)

0 Members and 1 Guest are viewing this topic.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Rvalues and Move Semantics for SFML2?
« 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?
I use the latest build of SFML2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Rvalues and Move Semantics for SFML2?
« Reply #1 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.
Laurent Gomila - SFML developer

 

anything