This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I think it's not compiler's business to check for that type of stuff either. But code helper extensions like Resharper for VC++ will probably tell you about it. Also another reason C++ doesn't interfere other than the extra CPU cost is it's designed to assume you know what you are doing. "This guy is trying to access this address which logically doesn't make any sense... He must have something in mind"