From: Gunnar Beutner Date: Mon, 23 Apr 2012 07:41:10 +0000 (+0200) Subject: Build fix for gcc. X-Git-Tag: v0.0.1~603 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42749696b659dcffb75a7b9466ccef147decd7d6;p=icinga2 Build fix for gcc. --- diff --git a/base/delegate.h b/base/delegate.h index 86ded1fb2..09d6fa0a8 100644 --- a/base/delegate.h +++ b/base/delegate.h @@ -5,7 +5,7 @@ namespace icinga { template -int delegate_fwd(int (TObject::*function)(TArgs), weak_ptr wref, const TArgs& args) +int delegate_fwd(int (TObject::*function)(TArgs), weak_ptr wref, TArgs args) { shared_ptr ref = wref.lock(); @@ -18,7 +18,7 @@ int delegate_fwd(int (TObject::*function)(TArgs), weak_ptr wref, const template function bind_weak(int (TObject::*function)(TArgs), const weak_ptr& wref) { - return bind(delegate_fwd, function, wref, _1); + return bind(&delegate_fwd, function, wref, _1); } template