diff --git a/include/ircd/util.h b/include/ircd/util.h index 14609baac..58bc2bf33 100644 --- a/include/ircd/util.h +++ b/include/ircd/util.h @@ -34,9 +34,11 @@ inline namespace util { #define IRCD_UNIQUE(a) IRCD_CONCAT(a, __COUNTER__) -#define IRCD_OVERLOAD(NAME) \ - struct NAME##_t {}; \ - static constexpr NAME##_t NAME {}; +#define IRCD_OVERLOAD(NAME) \ + static constexpr struct NAME##_t {} NAME {}; + +#define IRCD_USING_OVERLOAD(ALIAS, ORIGIN) \ + static constexpr const auto &ALIAS{ORIGIN} #define IRCD_WEAK_TYPEDEF(TYPE, NAME) \