C
Chris Forone
hello group,
in my subject-methode detach(const observer& o) i used following line to
remove the observer:
observers.remove_if([](MyObserver mo){ return &o == &mo; });
gcc 4.7 (mingw) give me the error: 'mo' is not captured. what does this
mean and how can i achieve the desired behavior?
thanks a lot, cheers chris
in my subject-methode detach(const observer& o) i used following line to
remove the observer:
observers.remove_if([](MyObserver mo){ return &o == &mo; });
gcc 4.7 (mingw) give me the error: 'mo' is not captured. what does this
mean and how can i achieve the desired behavior?
thanks a lot, cheers chris