Update asio wrap to 1.34.2

This fixes a compatibility issue with newer asio versions.
This commit is contained in:
Robbert van der Helm
2025-06-01 22:42:51 +02:00
parent 5d257268a4
commit 918d24a16e
3 changed files with 11 additions and 8 deletions
+2
View File
@@ -31,6 +31,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
### Packaging notes
- The `asio` dependency has been updated to version 1.34.2. This fixes a
compatibility issue with newer versions of `asio`.
- The `system-asio` build option has been removed since `asio` added
`pkg-config` support three years ago in version 1.23.
+6 -5
View File
@@ -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,
ASIO_NODISCARD inline mutable_buffer buffer(
llvm::SmallVectorImpl<PodType>& data,
std::size_t max_size_in_bytes) ASIO_NOEXCEPT {
return ASIO_MUTABLE_BUFFER(
return mutable_buffer(
data.size() ? &data[0] : 0,
data.size() * sizeof(PodType) < max_size_in_bytes
? data.size() * sizeof(PodType)
+2 -2
View File
@@ -1,7 +1,7 @@
[wrap-git]
url = https://github.com/chriskohlhoff/asio.git
# This is tag asio-1-28-2
revision = 7609450f71434bdc9fbd9491a9505b423c2a8496
# This is tag asio-1-34-2
revision = ed6aa8a13d51dfc6c00ae453fc9fb7df5d6ea963
depth = 1
patch_directory = asio