how to properly address this?
class House{
public:
void startAction();
void init(){
startAction = [] () {};
}
};
I have tried this, but it is said "Expression is not assignable"
I want to define the function of startAction, but inside the init method.
I do this because there's couple of variable in init method that i want to capture to pass to startAction.
House? The values seemed to be owned by it, from your description