mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd::util: Add IRCD_USING_OVERLOAD macro; minor cleanup.
This commit is contained in:
parent
fd3bb037c7
commit
892ad69f5b
1 changed files with 5 additions and 3 deletions
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue