diff --git a/include/ircd/m/event/event.h b/include/ircd/m/event/event.h index ebfb55655..c0fc1972f 100644 --- a/include/ircd/m/event/event.h +++ b/include/ircd/m/event/event.h @@ -51,6 +51,7 @@ struct ircd::m::event using keys = json::keys; using id = m::id::event; using idx = uint64_t; + using idx_range = std::pair; using closure = std::function; using closure_bool = std::function; using closure_idx = std::function; diff --git a/include/ircd/m/events.h b/include/ircd/m/events.h index 1c59e193d..427671222 100644 --- a/include/ircd/m/events.h +++ b/include/ircd/m/events.h @@ -26,14 +26,14 @@ namespace ircd::m::events /// (event::idx of 0 is a sentinel) /// struct ircd::m::events::range -:std::pair +:event::idx_range { const event::fetch::opts *fopts {nullptr}; range(const event::idx &start, const event::idx &stop = -1, const event::fetch::opts *const &fopts = nullptr) - :std::pair{start, stop} + :event::idx_range{start, stop} ,fopts{fopts} {} };