diff --git a/include/libtorrent/aux_/allocating_handler.hpp b/include/libtorrent/aux_/allocating_handler.hpp index 82a162d9e..8c4f0a7c2 100644 --- a/include/libtorrent/aux_/allocating_handler.hpp +++ b/include/libtorrent/aux_/allocating_handler.hpp @@ -73,15 +73,11 @@ namespace libtorrent { namespace aux template struct allocating_handler { - - // TODO: 3 make sure the handlers we pass in are potentially movable! -#if !defined BOOST_NO_CXX11_RVALUE_REFERENCES allocating_handler( Handler&& h, handler_storage& s) : handler(std::move(h)) , storage(s) {} -#endif allocating_handler( Handler const& h, handler_storage& s) @@ -89,32 +85,11 @@ namespace libtorrent { namespace aux , storage(s) {} -#if !defined BOOST_NO_CXX11_VARIADIC_TEMPLATES \ - && !defined BOOST_NO_CXX11_RVALUE_REFERENCES template void operator()(A&&... a) const { handler(std::forward(a)...); } -#else - template - void operator()(A0 const& a0) const - { - handler(a0); - } - - template - void operator()(A0 const& a0, A1 const& a1) const - { - handler(a0, a1); - } - - template - void operator()(A0 const& a0, A1 const& a1, A2 const& a2) const - { - handler(a0, a1, a2); - } -#endif friend void* asio_handler_allocate( std::size_t size, allocating_handler* ctx)