palacaze / sigslot

A simple C++14 signal-slots implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Are lambdas copied ?

Eren121 opened this issue · 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.