Still a bit new to C++ but years of coding in plenty other langs.
I'm really stumped on this mysterious phenomenon — the brief & simple portion of code:
auto modes = sf::VideoMode::getFullscreenModes();
if (modes.empty())
modes.push_back(sf::VideoMode::getDesktopMode());
std::printf(">>>>>>>>%d>>>\n", (int)(modes.size()));
for (auto it = modes.begin(); it != modes.end(); it++)
std::printf("- %dx%d @ %dbits/px\n", it->width, it->height, it->bitsPerPixel);
std::printf("<<<<<<<<<\n");
std::fflush(stdout);
And the baffling output:
>>>>>>>>210>>>
<<<<<<<<<
Not a single iteration with allegedly 210 vector items. Surely this must be some newbie mistake on my part? =)
Thanks for pointers!
This is Linux with X11 (and tiled window manager i3). Compiling with gcc's g++ and SFML 2.5.1 libs. (My distro lags a bit with that kinda stuff.)