fix deprecation warnings

This commit is contained in:
arvidn 2017-05-15 17:49:03 -04:00 committed by Arvid Norberg
parent 73a3e390b5
commit b547a2cef0
1 changed files with 9 additions and 0 deletions

View File

@ -151,6 +151,15 @@ namespace libtorrent { namespace aux {
// or outstanding writes
struct TORRENT_EXPORT partial_piece_info
{
#ifndef TORRENT_NO_DEPRECATE
#include "libtorrent/aux_/disable_warnings_push.hpp"
partial_piece_info() = default;
partial_piece_info(partial_piece_info&&) = default;
partial_piece_info(partial_piece_info const&) = default;
partial_piece_info& operator=(partial_piece_info const&) = default;
partial_piece_info& operator=(partial_piece_info&&) = default;
#include "libtorrent/aux_/disable_warnings_pop.hpp"
#endif
// the index of the piece in question. ``blocks_in_piece`` is the number
// of blocks in this particular piece. This number will be the same for
// most pieces, but