fr00b0 / nod

Small, header only signals and slots C++11 library.
MIT License
253 stars 49 forks source link

Add signal type that only accepts one slot #12

Open fr00b0 opened 7 years ago

fr00b0 commented 7 years ago

If a signal only has a single slot connected, we could allow that arguments are moved into the operator() and then forwarded into the slot. This might open up some interesting use-cases, where the signal consumes the argument by taking ownership. Since we can't have several slots taking ownership of the same thing, we would need a new type of signal that only allows a single slot to be connected.

This issue was spawned from #4