{
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();
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>