in reply to Re: const correctness
in thread const correctness

A decent C++ compiler (can't believe I wrote that) can perform several useful optimizations if you have correctly used const. It can also create a program which crashes spectacularly if you have used const incorrectly.