Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
Buge
11y ago
0 comments
Save
Share
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.
0 comments
1 comments · 1 top-level
top
newest
oldest
cjensen
11y ago
The 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.
j
/
k
navigate · click thread line to collapse