Generalize EBO affirming static_assert

so it doesn't depend on pointer size 8
This commit is contained in:
loonycyborg 2023-03-27 16:53:24 +03:00
parent 7bff35f991
commit 0e312fb74d
No known key found for this signature in database
GPG key ID: 6E8233FAB8F26D61

View file

@ -45,7 +45,7 @@ struct sdl_rwops_deleter
};
using rwops_ptr = std::unique_ptr<SDL_RWops, sdl_rwops_deleter>;
static_assert(sizeof(rwops_ptr) == 8);
static_assert(sizeof(rwops_ptr) == sizeof(SDL_RWops*));
rwops_ptr make_read_RWops(const std::string &path);
rwops_ptr make_write_RWops(const std::string &path);