0
0
Fork 0
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:
Jason Volk 2017-09-02 20:42:46 -07:00
parent fd3bb037c7
commit 892ad69f5b

View file

@ -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) \