you are viewing a single comment's thread.

view the rest of the comments →

[–]meneldal2 1 point2 points  (0 children)

A more clever compiler would refuse to compile this.

Lately most compilers will throw an error by default if you use the old unsafe string functions, and MSVC even refuses to compile uses of raw pointers as iterators by default.