mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::run::handler: Distill handler prototype for direct constructions.
This commit is contained in:
parent
61c64ccb08
commit
0433ea573a
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue