Whenever I try to build the following code:
Which came from the TGUI Minimal code tutorial for version 0.8, I get the following errors for 7 lines in the SignalImpl.hpp:
What should I do (if I can do anything)?
Code Select
#include <TGUI/TGUI.hpp>
int main()
{
sf::RenderWindow window{{800, 600}, "Window"};
tgui::Gui gui{window};
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
gui.handleEvent(event);
}
window.clear();
gui.draw();
window.display();
}
return EXIT_SUCCESS;
}
Which came from the TGUI Minimal code tutorial for version 0.8, I get the following errors for 7 lines in the SignalImpl.hpp:
- expected primary-expression before 'auto'
- expected ')' before 'auto'
- expected unqualified-id before 'decltype'
What should I do (if I can do anything)?