0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-01 01:28:54 +02:00

ircd: Relax noexcept in std::function template declarations.

This commit is contained in:
Jason Volk 2018-09-13 03:06:17 -07:00
parent 994916b7eb
commit 7d94b1c17b
4 changed files with 5 additions and 5 deletions

View file

@ -68,7 +68,7 @@ struct ircd::ctx::continuation
struct ircd::ctx::to_asio
:ircd::ctx::continuation
{
using function = std::function<void (ctx *const &) noexcept>;
using function = std::function<void (ctx *const &)>;
function handler;

View file

@ -38,7 +38,7 @@ struct ircd::server::out
/// 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
/// 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.
@ -59,7 +59,7 @@ struct ircd::server::in
/// 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;
/// 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
/// to be allocated on demand once the head is received and the length is

View file

@ -60,7 +60,7 @@ namespace util {
/// unique_ptr template for custom deleters every single time.
///
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.

View file

@ -1333,7 +1333,7 @@ ircd::ctx::prof::check_stack()
namespace ircd::ctx::ole
{
using closure = std::function<void () noexcept>;
using closure = std::function<void ()>;
extern conf::item<size_t> thread_max;