mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 04:19:59 +02:00
Update asio wrap to 1.34.2
This fixes a compatibility issue with newer asio versions.
This commit is contained in:
@@ -86,9 +86,9 @@ namespace asio {
|
||||
// std::size_t)`, since `llvm::SmallVector` is mostly compatible with the STL
|
||||
// vector.
|
||||
template <typename PodType>
|
||||
inline ASIO_MUTABLE_BUFFER buffer(llvm::SmallVectorImpl<PodType>& data)
|
||||
ASIO_NOEXCEPT {
|
||||
return ASIO_MUTABLE_BUFFER(
|
||||
ASIO_NODISCARD inline mutable_buffer buffer(
|
||||
llvm::SmallVectorImpl<PodType>& data) ASIO_NOEXCEPT {
|
||||
return mutable_buffer(
|
||||
data.size() ? &data[0] : 0, data.size() * sizeof(PodType)
|
||||
#if defined(ASIO_ENABLE_BUFFER_DEBUGGING)
|
||||
,
|
||||
@@ -99,9 +99,10 @@ inline ASIO_MUTABLE_BUFFER buffer(llvm::SmallVectorImpl<PodType>& data)
|
||||
}
|
||||
|
||||
template <typename PodType>
|
||||
inline ASIO_MUTABLE_BUFFER buffer(llvm::SmallVectorImpl<PodType>& data,
|
||||
std::size_t max_size_in_bytes) ASIO_NOEXCEPT {
|
||||
return ASIO_MUTABLE_BUFFER(
|
||||
ASIO_NODISCARD inline mutable_buffer buffer(
|
||||
llvm::SmallVectorImpl<PodType>& data,
|
||||
std::size_t max_size_in_bytes) ASIO_NOEXCEPT {
|
||||
return mutable_buffer(
|
||||
data.size() ? &data[0] : 0,
|
||||
data.size() * sizeof(PodType) < max_size_in_bytes
|
||||
? data.size() * sizeof(PodType)
|
||||
|
||||
Reference in New Issue
Block a user