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

Author Topic: How would I initialize a RenderWindow inside a tuple?  (Read 1206 times)

0 Members and 1 Guest are viewing this topic.

Critkeeper

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
How would I initialize a RenderWindow inside a tuple?
« on: June 19, 2015, 10:15:33 am »
Code: [Select]
tuple
<   RenderWindow
>
interface
{   RenderWindow (VideoMode(1920, 1080), "") };

Before anyone says "why would you want ... " just don't. I could use window.create(), but I want to be sure that what I'm trying to do isn't actually possible. The compiler spits out complaints about RenderWindow being noncopyable.

How would I initialize a tuple element without performing a copy? In other words, how do I emplace an element into a tuple?
if(CritKeeper.askQuestion()){return question.why();}

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).