Comment on Help with getting SFML for C++ set up for a project?

e0qdk@reddthat.com ⁨1⁩ ⁨week⁩ ago

while ( const std::optional event = window.pollEvent() )

Try passing -std=c++23 to g++ – that code doesn’t look like valid C++ from when I was regularly programming in C++, but the standards committee has fucked around with the language a lot in the last few years and I suspect this is something from one of the very recent standards.

source
Sort:hotnewtop