NoAvailableAlias / nano-signal-slot

Pure C++17 Signals and Slots
MIT License
407 stars 60 forks source link

how to get return value? #20

Closed xzwang2005 closed 7 years ago

xzwang2005 commented 7 years ago

The sample code didn't show how to retrieve the return value. What's the syntax for that?

NoAvailableAlias commented 7 years ago

Hello, in order to access signal return values you must use the syntax shown here: emit_accumulate. You have to use the emit_accumulate method and pass a lambda in order to access the return values.

xzwang2005 commented 7 years ago

Thanks.