0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-07 12:38:56 +02:00

ircd::run::handler: Distill handler prototype for direct constructions.

This commit is contained in:
Jason Volk 2022-04-30 15:49:04 -07:00
parent 61c64ccb08
commit 0433ea573a

View file

@ -83,20 +83,22 @@ enum class ircd::run::level
struct ircd::run::changed
:instance_list<ircd::run::changed>
{
static ctx::dock dock;
using handler_proto = void (const enum level &);
static const enum level single_sentinel
{
std::numeric_limits<std::underlying_type<enum level>::type>::max()
};
static ctx::dock dock;
enum level single
{
single_sentinel
};
std::function<void ()> handler_one;
std::function<void (const enum level &)> handler
std::function<handler_proto> handler
{
[this](const auto &level)
{