ZXShady

Results 69 comments of ZXShady

@vittorioromeo it won't as this will corruption happen when the user tries to pass any 1 empty classes (the second is in the implementation) and in any order and reverting...

ODR is evil. ODR voilations allow the compiler to choose 1 definition of the many proposed randomly.

also changing Shader::setUniform to use string_view instead of const string& since C++20 allows heterogenous lookups.

sf::Vector2 can't be made an aggregate since it has another constructor that cannot be replaced `SFML_SYSTEM_API Vector2(T r, Angle phi);`

@TerensTare the uses of an aggregate Vector2 is not particularly helpful, as designated initializers really shine with multiple members not just 2 members that are known in order making it...

@vittorioromeo I don't see how this improves the API much as the window constructor has different arguments of different types it s pretty clear which argument is you still need...

will this be documented? so users who used to forward declare them on MSVC for example won't get crazy linker errors

> Can you give an example of a pseudo implementation? What is your goal? a simple way is just using to_ ```cpp template struct std::hash { size_t operator()(magic_enum::bitset const& bitset)...

Hi, This behavior is expected due to how `magic_enum` reflects bitflags, it reflects only the `2^N` members and `0x0C` (12) is not a power of 2 therefore it is not...

the guide doesn't mention that `sf::Keyboard`,`sf::Mouse`,`sf::Joystick`,`sf::Touch` are now namespaces instead of classes with all static members. so old code like this which shortens a name. ```cpp typedef sf::Touch sfTch; //...