You could keep the `const` for the message if you want to:

    const ros::MessageEvent<M const>& msg_evt

The same would apply to the other callbacks as well.