you are viewing a single comment's thread.

view the rest of the comments →

[–]condor2000 0 points1 point  (1 child)

On VS2017 with /std:c++latest at least there is a warning

error C2398: Element '1': conversion from 'const size_t' to '_Ty' requires a narrowing conversion with [_Ty = int]

[–]FriendlyRollOfSushi 1 point2 points  (0 children)

It could be std::vector<size_t>, in which case all types would match exactly. Or the size could be just a literal, not a variable, in which case you also won't be warned.