fix build issue

This commit is contained in:
arvidn
2015-08-31 00:54:16 -04:00
parent 4536f2c293
commit f719b95f64
2 changed files with 5 additions and 2 deletions

View File

@@ -73,19 +73,21 @@ namespace libtorrent { namespace aux
template <class Handler, std::size_t Size>
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<Size>& s)
: handler(std::move(h))
, storage(s)
{}
#else
#endif
allocating_handler(
Handler const& h, handler_storage<Size>& s)
: handler(h)
, storage(s)
{}
#endif
#if !defined BOOST_NO_CXX11_VARIADIC_TEMPLATES \
&& !defined BOOST_NO_CXX11_RVALUE_REFERENCES

View File

@@ -36,6 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <string>
#include "libtorrent/peer_id.hpp"
#include "libtorrent/address.hpp"
namespace libtorrent
{