How can we create or access the actor declared in class.
I have tried to do that . i was able to declare the actor (behavior) as an attribute of class but was not able to access it after making the object of class.
Or in other words...
How to spawn an actor declared in class. (actor is declared like the example of CAF)
behavior calculator_fun() {
return {
[](add_atom, int a, int b) { return a + b; },
[](sub_atom, int a, int b) { return a - b; },
};
}