forked from premiere/premiere-libtorrent
simplify allocating handler (#1135)
This commit is contained in:
parent
885e4f8fc4
commit
1fa4c4b2ae
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue