Build fix for gcc.

This commit is contained in:
Gunnar Beutner 2012-04-23 09:41:10 +02:00
parent 09001efd18
commit 42749696b6
1 changed files with 2 additions and 2 deletions

View File

@ -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>