If I have a
std::vector<Foo> and want to store its size in a
GLuint, my compiler gives a warning that there is possible loss of data.
GLuint size = vec.size(); // "conversion from 'size_t' to 'GLuint', possible loss of data"
How do I correctly do this type of casting?
Are there more pitfalls of this kind with for example