palacaze/sigslot

Are lambdas copied ?

Eren121 opened this issue · 1 comments

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 ?

Depending on its value category, a lambda will either be moved or copied. Slots are never stored as references.