Comment Comment by _slyo Are you aware of std::reference_wrapper? https://en.cppreference.com/w/cpp/utility/functional/referen... parent _slyo 6 years ago