Skip to content

Commit cf7d306

Browse files
committed
Update vendor
1 parent 24285ee commit cf7d306

File tree

1,214 files changed

+1924
-1410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,214 files changed

+1924
-1410
lines changed

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// asio.hpp
33
// ~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/any_completion_executor.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// any_completion_executor.hpp
33
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/any_completion_handler.hpp

+19-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// any_completion_handler.hpp
33
// ~~~~~~~~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -514,9 +514,15 @@ class any_completion_handler_allocator
514514
/// Allocate space for @c n objects of the allocator's value type.
515515
T* allocate(std::size_t n) const
516516
{
517-
return static_cast<T*>(
518-
fn_table_->allocate(
519-
impl_, sizeof(T) * n, alignof(T)));
517+
if (fn_table_)
518+
{
519+
return static_cast<T*>(
520+
fn_table_->allocate(
521+
impl_, sizeof(T) * n, alignof(T)));
522+
}
523+
std::bad_alloc ex;
524+
asio::detail::throw_exception(ex);
525+
return nullptr;
520526
}
521527

522528
/// Deallocate space for @c n objects of the allocator's value type.
@@ -724,7 +730,7 @@ class any_completion_handler
724730
/// Get the associated cancellation slot.
725731
cancellation_slot_type get_cancellation_slot() const noexcept
726732
{
727-
return impl_->get_cancellation_slot();
733+
return impl_ ? impl_->get_cancellation_slot() : cancellation_slot_type();
728734
}
729735

730736
/// Function call operator.
@@ -786,8 +792,10 @@ struct associated_executor<any_completion_handler<Signatures...>, Candidate>
786792
static type get(const any_completion_handler<Signatures...>& handler,
787793
const Candidate& candidate = Candidate()) noexcept
788794
{
789-
return handler.fn_table_->executor(handler.impl_,
790-
any_completion_executor(std::nothrow, candidate));
795+
any_completion_executor any_candidate(std::nothrow, candidate);
796+
return handler.fn_table_
797+
? handler.fn_table_->executor(handler.impl_, any_candidate)
798+
: any_candidate;
791799
}
792800
};
793801

@@ -800,8 +808,10 @@ struct associated_immediate_executor<
800808
static type get(const any_completion_handler<Signatures...>& handler,
801809
const Candidate& candidate = Candidate()) noexcept
802810
{
803-
return handler.fn_table_->immediate_executor(handler.impl_,
804-
any_io_executor(std::nothrow, candidate));
811+
any_io_executor any_candidate(std::nothrow, candidate);
812+
return handler.fn_table_
813+
? handler.fn_table_->immediate_executor(handler.impl_, any_candidate)
814+
: any_candidate;
805815
}
806816
};
807817

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/any_io_executor.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// any_io_executor.hpp
33
// ~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/append.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// append.hpp
33
// ~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/as_tuple.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// as_tuple.hpp
33
// ~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/associated_allocator.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// associated_allocator.hpp
33
// ~~~~~~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/associated_cancellation_slot.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// associated_cancellation_slot.hpp
33
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/associated_executor.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// associated_executor.hpp
33
// ~~~~~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/associated_immediate_executor.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// associated_immediate_executor.hpp
33
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/associator.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// associator.hpp
33
// ~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/async_result.hpp

+67-18
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// async_result.hpp
33
// ~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -97,39 +97,39 @@ struct is_completion_handler_for : false_type
9797

9898
template <typename T, typename R, typename... Args>
9999
struct is_completion_handler_for<T, R(Args...)>
100-
: integral_constant<bool, (callable_with<T, Args...>)>
100+
: integral_constant<bool, (callable_with<decay_t<T>, Args...>)>
101101
{
102102
};
103103

104104
template <typename T, typename R, typename... Args>
105105
struct is_completion_handler_for<T, R(Args...) &>
106-
: integral_constant<bool, (callable_with<T&, Args...>)>
106+
: integral_constant<bool, (callable_with<decay_t<T>&, Args...>)>
107107
{
108108
};
109109

110110
template <typename T, typename R, typename... Args>
111111
struct is_completion_handler_for<T, R(Args...) &&>
112-
: integral_constant<bool, (callable_with<T&&, Args...>)>
112+
: integral_constant<bool, (callable_with<decay_t<T>&&, Args...>)>
113113
{
114114
};
115115

116116
# if defined(ASIO_HAS_NOEXCEPT_FUNCTION_TYPE)
117117

118118
template <typename T, typename R, typename... Args>
119119
struct is_completion_handler_for<T, R(Args...) noexcept>
120-
: integral_constant<bool, (callable_with<T, Args...>)>
120+
: integral_constant<bool, (callable_with<decay_t<T>, Args...>)>
121121
{
122122
};
123123

124124
template <typename T, typename R, typename... Args>
125125
struct is_completion_handler_for<T, R(Args...) & noexcept>
126-
: integral_constant<bool, (callable_with<T&, Args...>)>
126+
: integral_constant<bool, (callable_with<decay_t<T>&, Args...>)>
127127
{
128128
};
129129

130130
template <typename T, typename R, typename... Args>
131131
struct is_completion_handler_for<T, R(Args...) && noexcept>
132-
: integral_constant<bool, (callable_with<T&&, Args...>)>
132+
: integral_constant<bool, (callable_with<decay_t<T>&&, Args...>)>
133133
{
134134
};
135135

@@ -176,37 +176,84 @@ ASIO_CONCEPT completion_handler_for =
176176
namespace detail {
177177

178178
template <typename T>
179-
struct is_simple_completion_signature : false_type
179+
struct is_lvalue_completion_signature : false_type
180+
{
181+
};
182+
183+
template <typename R, typename... Args>
184+
struct is_lvalue_completion_signature<R(Args...) &> : true_type
185+
{
186+
};
187+
188+
# if defined(ASIO_HAS_NOEXCEPT_FUNCTION_TYPE)
189+
190+
template <typename R, typename... Args>
191+
struct is_lvalue_completion_signature<R(Args...) & noexcept> : true_type
192+
{
193+
};
194+
195+
# endif // defined(ASIO_HAS_NOEXCEPT_FUNCTION_TYPE)
196+
197+
template <typename... Signatures>
198+
struct are_any_lvalue_completion_signatures : false_type
199+
{
200+
};
201+
202+
template <typename Sig0>
203+
struct are_any_lvalue_completion_signatures<Sig0>
204+
: is_lvalue_completion_signature<Sig0>
205+
{
206+
};
207+
208+
template <typename Sig0, typename... SigN>
209+
struct are_any_lvalue_completion_signatures<Sig0, SigN...>
210+
: integral_constant<bool, (
211+
is_lvalue_completion_signature<Sig0>::value
212+
|| are_any_lvalue_completion_signatures<SigN...>::value)>
180213
{
181214
};
182215

183216
template <typename T>
184-
struct simple_completion_signature;
217+
struct is_rvalue_completion_signature : false_type
218+
{
219+
};
185220

186221
template <typename R, typename... Args>
187-
struct is_simple_completion_signature<R(Args...)> : true_type
222+
struct is_rvalue_completion_signature<R(Args...) &&> : true_type
188223
{
189224
};
190225

226+
# if defined(ASIO_HAS_NOEXCEPT_FUNCTION_TYPE)
227+
228+
template <typename R, typename... Args>
229+
struct is_rvalue_completion_signature<R(Args...) && noexcept> : true_type
230+
{
231+
};
232+
233+
# endif // defined(ASIO_HAS_NOEXCEPT_FUNCTION_TYPE)
234+
191235
template <typename... Signatures>
192-
struct are_simple_completion_signatures : false_type
236+
struct are_any_rvalue_completion_signatures : false_type
193237
{
194238
};
195239

196240
template <typename Sig0>
197-
struct are_simple_completion_signatures<Sig0>
198-
: is_simple_completion_signature<Sig0>
241+
struct are_any_rvalue_completion_signatures<Sig0>
242+
: is_rvalue_completion_signature<Sig0>
199243
{
200244
};
201245

202246
template <typename Sig0, typename... SigN>
203-
struct are_simple_completion_signatures<Sig0, SigN...>
247+
struct are_any_rvalue_completion_signatures<Sig0, SigN...>
204248
: integral_constant<bool, (
205-
is_simple_completion_signature<Sig0>::value
206-
&& are_simple_completion_signatures<SigN...>::value)>
249+
is_rvalue_completion_signature<Sig0>::value
250+
|| are_any_rvalue_completion_signatures<SigN...>::value)>
207251
{
208252
};
209253

254+
template <typename T>
255+
struct simple_completion_signature;
256+
210257
template <typename R, typename... Args>
211258
struct simple_completion_signature<R(Args...)>
212259
{
@@ -344,15 +391,17 @@ template <typename CompletionToken,
344391
ASIO_COMPLETION_SIGNATURE... Signatures>
345392
class async_result :
346393
public conditional_t<
347-
detail::are_simple_completion_signatures<Signatures...>::value,
394+
detail::are_any_lvalue_completion_signatures<Signatures...>::value
395+
|| !detail::are_any_rvalue_completion_signatures<Signatures...>::value,
348396
detail::completion_handler_async_result<CompletionToken, Signatures...>,
349397
async_result<CompletionToken,
350398
typename detail::simple_completion_signature<Signatures>::type...>
351399
>
352400
{
353401
public:
354402
typedef conditional_t<
355-
detail::are_simple_completion_signatures<Signatures...>::value,
403+
detail::are_any_lvalue_completion_signatures<Signatures...>::value
404+
|| !detail::are_any_rvalue_completion_signatures<Signatures...>::value,
356405
detail::completion_handler_async_result<CompletionToken, Signatures...>,
357406
async_result<CompletionToken,
358407
typename detail::simple_completion_signature<Signatures>::type...>

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/awaitable.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// awaitable.hpp
33
// ~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/basic_datagram_socket.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// basic_datagram_socket.hpp
33
// ~~~~~~~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/basic_deadline_timer.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// basic_deadline_timer.hpp
33
// ~~~~~~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/basic_file.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// basic_file.hpp
33
// ~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/basic_io_object.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// basic_io_object.hpp
33
// ~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/basic_random_access_file.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// basic_random_access_file.hpp
33
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/basic_raw_socket.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// basic_raw_socket.hpp
33
// ~~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Diff for: example/vendor/cget/pkg/chriskohlhoff__asio/install/include/asio/basic_readable_pipe.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// basic_readable_pipe.hpp
33
// ~~~~~~~~~~~~~~~~~~~~~~~
44
//
5-
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
66
//
77
// Distributed under the Boost Software License, Version 1.0. (See accompanying
88
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

0 commit comments

Comments
 (0)