removed use of boost::uintptr_t for better compatibility

This commit is contained in:
arvidn 2017-04-23 11:15:43 -04:00
parent 227830e757
commit 7dd11268dd
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
* removed depdendency on boost::uintptr_t for better compatibility
* fix memory leak in the disk cache
* fix double free in disk cache
* forward declaring libtorrent types is discouraged. a new fwd.hpp header is provided

View File

@ -87,7 +87,7 @@ lsd::lsd(io_service& ios, peer_callback_t const& cb
, m_log_cb(log)
#endif
, m_broadcast_timer(ios)
, m_cookie((random() ^ boost::uintptr_t(this)) & 0x7fffffff)
, m_cookie((random() ^ uintptr_t(this)) & 0x7fffffff)
, m_disabled(false)
#if TORRENT_USE_IPV6
, m_disabled6(false)