From d785a48475041fee4bf433bd7640dc192fd16640 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 5 Jan 2025 20:22:34 +0100 Subject: Core/Grids: Modernize TypeContainer with variadic template (cherry picked from commit 401502ea3c5ceca0c6253910035b2949e13746cc) --- src/server/shared/Dynamic/TypeList.h | 45 ------------------------------------ 1 file changed, 45 deletions(-) delete mode 100644 src/server/shared/Dynamic/TypeList.h (limited to 'src/server/shared') diff --git a/src/server/shared/Dynamic/TypeList.h b/src/server/shared/Dynamic/TypeList.h deleted file mode 100644 index 32000b7de80..00000000000 --- a/src/server/shared/Dynamic/TypeList.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -#ifndef TRINITY_TYPELIST_H -#define TRINITY_TYPELIST_H - -/* - @struct TypeList - TypeList is the most simple but yet the most powerfull class of all. It holds - at compile time the different type of objects in a linked list. - */ - -class TypeNull; - -template -struct TypeList -{ - typedef HEAD Head; - typedef TAIL Tail; -}; - -// enough for now.. can be expand at any point in time as needed -#define TYPELIST_1(T1) TypeList -#define TYPELIST_2(T1, T2) TypeList -#define TYPELIST_3(T1, T2, T3) TypeList -#define TYPELIST_4(T1, T2, T3, T4) TypeList -#define TYPELIST_5(T1, T2, T3, T4, T5) TypeList -#define TYPELIST_6(T1, T2, T3, T4, T5, T6) TypeList -#define TYPELIST_7(T1, T2, T3, T4, T5, T6, T7) TypeList -#define TYPELIST_8(T1, T2, T3, T4, T5, T6, T7, T8) TypeList -#endif -- cgit v1.2.3