mirror of https://github.com/Icinga/icinga2.git
Build fix for gcc.
This commit is contained in:
parent
09001efd18
commit
42749696b6
|
@ -5,7 +5,7 @@ namespace icinga
|
|||
{
|
||||
|
||||
template<class TObject, class TArgs>
|
||||
int delegate_fwd(int (TObject::*function)(TArgs), weak_ptr<TObject> wref, const TArgs& args)
|
||||
int delegate_fwd(int (TObject::*function)(TArgs), weak_ptr<TObject> wref, TArgs args)
|
||||
{
|
||||
shared_ptr<TObject> ref = wref.lock();
|
||||
|
||||
|
@ -18,7 +18,7 @@ int delegate_fwd(int (TObject::*function)(TArgs), weak_ptr<TObject> wref, const
|
|||
template<class TObject, class TArgs>
|
||||
function<int (TArgs)> bind_weak(int (TObject::*function)(TArgs), const weak_ptr<TObject>& wref)
|
||||
{
|
||||
return bind(delegate_fwd<TObject, TArgs>, function, wref, _1);
|
||||
return bind(&delegate_fwd<TObject, TArgs>, function, wref, _1);
|
||||
}
|
||||
|
||||
template<class TObject, class TArgs>
|
||||
|
|
Loading…
Reference in New Issue