To improve performance, in the
MessageNotification(const Message& msg)
constructor, the assignment to _msg should be replaced with initialization.
MessageNotification(const Message& msg)
: _msg( msg )
{
// I commented this out and added the initialization above.
//_msg = msg;
}