Actually, the member variable m_pMessage is not const. It is what it points to that is const.