mirror of
https://github.com/matrix-construct/construct
synced 2024-10-31 19:08:59 +01:00
ircd: Relax noexcept in std::function template declarations.
This commit is contained in:
parent
994916b7eb
commit
7d94b1c17b
4 changed files with 5 additions and 5 deletions
|
@ -68,7 +68,7 @@ struct ircd::ctx::continuation
|
||||||
struct ircd::ctx::to_asio
|
struct ircd::ctx::to_asio
|
||||||
:ircd::ctx::continuation
|
:ircd::ctx::continuation
|
||||||
{
|
{
|
||||||
using function = std::function<void (ctx *const &) noexcept>;
|
using function = std::function<void (ctx *const &)>;
|
||||||
|
|
||||||
function handler;
|
function handler;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ struct ircd::server::out
|
||||||
/// data most recently written. The second argument is a view of all data
|
/// data most recently written. The second argument is a view of all data
|
||||||
/// written so far. This is only invoked for content. At the first
|
/// written so far. This is only invoked for content. At the first
|
||||||
/// invocation, the head has been fully written.
|
/// invocation, the head has been fully written.
|
||||||
std::function<void (const_buffer, const_buffer) noexcept> progress;
|
std::function<void (const_buffer, const_buffer)> progress;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Request data and options related to the receive side of the request.
|
/// Request data and options related to the receive side of the request.
|
||||||
|
@ -59,7 +59,7 @@ struct ircd::server::in
|
||||||
/// data most recently received. The second argument is a view of all data
|
/// data most recently received. The second argument is a view of all data
|
||||||
/// received so far. This is only invoked for content, not for the head;
|
/// received so far. This is only invoked for content, not for the head;
|
||||||
/// however the first time it is invoked it is safe to view the in.head
|
/// however the first time it is invoked it is safe to view the in.head
|
||||||
std::function<void (const_buffer, const_buffer) noexcept> progress;
|
std::function<void (const_buffer, const_buffer)> progress;
|
||||||
|
|
||||||
/// The dynamic buffer is a convenience that allows for the content buffer
|
/// The dynamic buffer is a convenience that allows for the content buffer
|
||||||
/// to be allocated on demand once the head is received and the length is
|
/// to be allocated on demand once the head is received and the length is
|
||||||
|
|
|
@ -60,7 +60,7 @@ namespace util {
|
||||||
/// unique_ptr template for custom deleters every single time.
|
/// unique_ptr template for custom deleters every single time.
|
||||||
///
|
///
|
||||||
template<class T>
|
template<class T>
|
||||||
using custom_ptr = std::unique_ptr<T, std::function<void (T *) noexcept>>;
|
using custom_ptr = std::unique_ptr<T, std::function<void (T *)>>;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Misc size() participants.
|
// Misc size() participants.
|
||||||
|
|
|
@ -1333,7 +1333,7 @@ ircd::ctx::prof::check_stack()
|
||||||
|
|
||||||
namespace ircd::ctx::ole
|
namespace ircd::ctx::ole
|
||||||
{
|
{
|
||||||
using closure = std::function<void () noexcept>;
|
using closure = std::function<void ()>;
|
||||||
|
|
||||||
extern conf::item<size_t> thread_max;
|
extern conf::item<size_t> thread_max;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue