void thing(const Data data) {

kill yourself, you're fired, DONE, delete yourself from the premises
void thing(const Data& data) {

ah, I see you're a fellow 40 year experience wizard, welcome