4 Sep
2015
4 Sep
'15
9:58 p.m.
Oh and an absolute basics question... Does the connect function copy functors? I believe it does, so the code below would be safe. (Is that correct????) Thanks boost::signals2::signal<void()> sig; { Slot_Functor slot; sig.connect(slot); } sig(); Is there any case, where a slot could go out of scope before the signal is called?? If functors (and lambdas) are nicely copied, then I believe that the slot will always be in scope when it is called. (??) Thanks