Update yasio to latest

This commit is contained in:
halx99 2023-10-06 01:02:01 +08:00
parent 86ab2fe995
commit 2305bfeced
2 changed files with 3 additions and 3 deletions

View File

@ -194,9 +194,9 @@ public:
size_t bsize() const { return _buffer.size(); }
/** Resizes the count of indices in the container. */
void resize(size_t size) { _buffer.resize(size * _stride); }
void resize(size_t size) {_buffer.resize(static_cast<yasio::byte_buffer::size_type>(size * _stride)); }
/** Resizes the container in bytes. */
void bresize(size_t size) { _buffer.resize(size); }
void bresize(size_t size) { _buffer.resize(static_cast<yasio::byte_buffer::size_type>(size)); }
/** Returns true if the container is empty. Otherwise, false. */
bool empty() const { return _buffer.empty(); }

View File

@ -22,7 +22,7 @@ namespace axstd
{
using byte_buffer = yasio::byte_buffer;
using sbyte_buffer = yasio::sbyte_buffer;
template <typename _Elem, typename _Alloc = yasio::default_buffer_allocator<_Elem>>
template <typename _Elem, typename _Alloc = yasio::buffer_allocator<_Elem>>
using pod_vector = yasio::pod_vector<_Elem, _Alloc>;
/* make_unique_for_overwrite since c++20, but not all platformm support */