one more fix related to typed_span conversion (#2050)
This commit is contained in:
parent
6967d17a42
commit
b1b3f0e3e8
|
@ -37,6 +37,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
#include "libtorrent/config.hpp"
|
||||
#include "libtorrent/span.hpp"
|
||||
#include "libtorrent/aux_/typed_span.hpp"
|
||||
#include "libtorrent/units.hpp"
|
||||
#include "libtorrent/storage_defs.hpp" // for status_t
|
||||
|
||||
|
@ -56,7 +57,7 @@ namespace libtorrent {
|
|||
|
||||
TORRENT_EXTRA_EXPORT int copy_bufs(span<iovec_t const> bufs
|
||||
, int bytes, span<iovec_t> target);
|
||||
TORRENT_EXTRA_EXPORT span<iovec_t> advance_bufs(span<iovec_t> bufs, int bytes);
|
||||
TORRENT_EXTRA_EXPORT typed_span<iovec_t> advance_bufs(typed_span<iovec_t> bufs, int bytes);
|
||||
|
||||
// this is a read or write operation so that readwritev() knows
|
||||
// what to do when it's actually touching the file
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace libtorrent { namespace aux {
|
|||
return ret;
|
||||
}
|
||||
|
||||
span<iovec_t> advance_bufs(span<iovec_t> bufs, int const bytes)
|
||||
typed_span<iovec_t> advance_bufs(typed_span<iovec_t> bufs, int const bytes)
|
||||
{
|
||||
TORRENT_ASSERT(bytes >= 0);
|
||||
std::size_t size = 0;
|
||||
|
|
Loading…
Reference in New Issue