3 ms·
One problem with this is that the sizes of STL containers are returned unsigned, and with high warning levels, compilers will warn about comparing a signed int
by Buge 12y ago
One problem with this is that the sizes of STL containers are returned unsigned, and with high warning levels, compilers will warn about comparing a signed int with one of these sizes.
- cjensen 12y agoThe size of everything is unsigned. You may not know if size_t is unsigned int or unsigned long, but you can always be sure it isn't int.