weberdaniel / reactive-cpp

Supervision Strategies for C++ Actor Framework
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

use std::unique_ptr instead of std::shared_ptr inside the actor to store static state #13

Closed weberdaniel closed 2 years ago

weberdaniel commented 2 years ago

memory shall not be shared actually.

weberdaniel commented 2 years ago

nope, should not be done. the problem with unique_ptr is that it must somehow be reliabily passed between all the message handler options, e.g. lambda expressions in a list of lambda expressions.