Is my r-value reference as class member undefined behavior
My company is using it´s own thread API and I am not allowed to use std::thread, so I want to create a class to wrap our legacy API. I am not sure how to pass a r-value reference to my TestThread::ThreadUpdateLoop (see below code) so I stored it as a member variable. Is this ok or undefined behavior? Can I some how pass the r-value to the update function without storing it as a member?