fix build issue
This commit is contained in:
@@ -73,19 +73,21 @@ namespace libtorrent { namespace aux
|
|||||||
template <class Handler, std::size_t Size>
|
template <class Handler, std::size_t Size>
|
||||||
struct allocating_handler
|
struct allocating_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// TODO: 3 make sure the handlers we pass in are potentially movable!
|
||||||
#if !defined BOOST_NO_CXX11_RVALUE_REFERENCES
|
#if !defined BOOST_NO_CXX11_RVALUE_REFERENCES
|
||||||
allocating_handler(
|
allocating_handler(
|
||||||
Handler&& h, handler_storage<Size>& s)
|
Handler&& h, handler_storage<Size>& s)
|
||||||
: handler(std::move(h))
|
: handler(std::move(h))
|
||||||
, storage(s)
|
, storage(s)
|
||||||
{}
|
{}
|
||||||
#else
|
#endif
|
||||||
|
|
||||||
allocating_handler(
|
allocating_handler(
|
||||||
Handler const& h, handler_storage<Size>& s)
|
Handler const& h, handler_storage<Size>& s)
|
||||||
: handler(h)
|
: handler(h)
|
||||||
, storage(s)
|
, storage(s)
|
||||||
{}
|
{}
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined BOOST_NO_CXX11_VARIADIC_TEMPLATES \
|
#if !defined BOOST_NO_CXX11_VARIADIC_TEMPLATES \
|
||||||
&& !defined BOOST_NO_CXX11_RVALUE_REFERENCES
|
&& !defined BOOST_NO_CXX11_RVALUE_REFERENCES
|
||||||
|
@@ -36,6 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "libtorrent/peer_id.hpp"
|
#include "libtorrent/peer_id.hpp"
|
||||||
|
#include "libtorrent/address.hpp"
|
||||||
|
|
||||||
namespace libtorrent
|
namespace libtorrent
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user