edhebi / cpp-sdl2

Header only C++17 bindings to SDL2 (https://wiki.libsdl.org/FrontPage)
MIT License
29 stars 4 forks source link

Returning to the project, new todo list #33

Open edhebi opened 4 years ago

edhebi commented 4 years ago

Haven't been active on this project for a while, so here are a few things to keep me occupied for a bit, in no particular order:

Those points are open to debate and some need conversation. Feel free to butt in and say stuff (looking at you, @Ybalrid :p). To me, those are the things to fix before a real 1.0.0 release tag.

Ybalrid commented 4 years ago

So, my brain is mashed potato right now (did not sleep yet, just finished Half-Life: Alyx, I'm processing what happened yet because OMFG)

Point by point, here's what I think:

edhebi commented 4 years ago

Why supporting C++ < 17? I see no practical reasons not to.

do you mean "I see no reason to support C++14", or "I see no reason not to support C++14" ?

Ybalrid commented 4 years ago

I mean, I see no reason to support the older

szejos commented 4 years ago

Can you add a small hint in wiki for those using Visual Studio: https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=vs-2019

With this flag set to default you get a bunch of errors, since it is not supporting C++ < 17. Need to change it to C++17.

Ybalrid commented 4 years ago

@szejos Now that you say that, I thought that it was clearly stated that this library was written in C++17. But it seems that it's not the case... I will add a mention to the README.md file! 😄

As a side note, If you use CMake, you can take inspiration on how we include the library for our CI/Examples. This sets the flags automatically for all compilers that supports it https://github.com/Edhebi/cpp-sdl2/blob/master/examples/CMakeLists.txt#L3

edhebi commented 4 years ago

Thanks, @Ybalrid. Note that this will be less of an issue when get a proper cmake configuration.

edhebi commented 4 years ago
pyronide commented 3 years ago

I'd like to see this in MSYS2, although I think there would be a problem with cmake, as the current cmake files for SDL2 on MSYS won't link unless SDL_MAIN_HANDLED is defined.