simplify allocating handler (#1135)

This commit is contained in:
Arvid Norberg 2016-09-22 12:00:54 -07:00 committed by GitHub
parent 885e4f8fc4
commit 1fa4c4b2ae
1 changed files with 1 additions and 7 deletions

View File

@ -69,17 +69,11 @@ namespace libtorrent { namespace aux
struct allocating_handler
{
allocating_handler(
Handler&& h, handler_storage<Size>& s)
Handler h, handler_storage<Size>& s)
: handler(std::move(h))
, storage(s)
{}
allocating_handler(
Handler const& h, handler_storage<Size>& s)
: handler(h)
, storage(s)
{}
template <class... A>
void operator()(A&&... a) const
{