fix clang & gcc build

This commit is contained in:
Denis Blank 2015-06-11 14:53:23 +02:00 committed by Naios
parent b923fc3e2f
commit 78e7d7c1f5

View File

@ -109,10 +109,10 @@ inline auto make_shared_callback(_CTy&& callback)
/// If the given managed callback expires the callback is not invoked anymore.
template<typename _CTy>
inline auto make_weak_wrapped_callback(_CTy&& callback)
-> decltype(detail::WeakProxyFactory<_CTy, std::decay<_CTy>::type>::
-> decltype(detail::WeakProxyFactory<_CTy, typename std::decay<_CTy>::type>::
CreateProxy(std::declval<_CTy>()))
{
return detail::WeakProxyFactory<_CTy, std::decay<_CTy>::type>::
return detail::WeakProxyFactory<_CTy, typename std::decay<_CTy>::type>::
CreateProxy(std::forward<_CTy>(callback));
}