Corrected lambda bug. Capture this.

This commit is contained in:
KjellKod 2013-08-18 23:15:56 -06:00
parent b490624ea0
commit f4c939dc8a

View File

@ -46,7 +46,7 @@ namespace g2 {
virtual ~Sink() { _bg.reset(); }
void send(LogEntry msg) override {
_bg->send([ = ]{_default_log_call(msg);});
_bg->send([this, msg]{_default_log_call(msg);});
}
template<typename Call, typename... Args>