I was hoping that someone could clarify exactly what is meant by undefined behaviour in C++. Given the following class definition:
class Foo { public:
Compilers may place const data in read only parts of memory for optimization reasons and attempt to modify this data will result in UB.