Skip to content

Commit

Permalink
Mark TypeList.h for deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
H0zen committed Mar 29, 2018
1 parent ad69c00 commit e16efe3
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions src/framework/Utilities/TypeList.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,6 @@
#ifndef MANGOS_TYPELIST_H
#define MANGOS_TYPELIST_H

class TypeNull;

template<typename HEAD, typename TAIL>
/**
* @brief 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.
*
*/
struct TypeList
{
/**
* @brief
*
*/
typedef HEAD Head;
/**
* @brief
*
*/
typedef TAIL Tail;
};

// enough for now.. can be expand at any point in time as needed
#define TYPELIST_1(T1) TypeList<T1, TypeNull>
#define TYPELIST_2(T1, T2) TypeList<T1, TYPELIST_1(T2) >
#define TYPELIST_3(T1, T2, T3) TypeList<T1, TYPELIST_2(T2, T3) >
#define TYPELIST_4(T1, T2, T3, T4) TypeList<T1, TYPELIST_3(T2, T3, T4) >
#define TYPELIST_5(T1, T2, T3, T4, T5) TypeList<T1, TYPELIST_4(T2, T3, T4, T5) >
// marked for deletion

#endif

0 comments on commit e16efe3

Please sign in to comment.