Are lambdas copied ?
Eren121 opened this issue · 1 comments
Eren121 commented
The home page says that the slot should exceed the lifetime of the signal. However, in the ADAPT
macro example, you give a temporary lambda to the connect()
function. So are temporary lambda copied ?
palacaze commented
Depending on its value category, a lambda will either be moved or copied. Slots are never stored as references.