Felics Felics - 1 year ago 54
C++ Question

C++ type lists with its alias in the list

Is it possible to create a list of types in C++ that contains its alias in the list?

I would like to achieve something like:

using MyList = TypeList<int, float, MyList>;

mtb mtb
Answer Source

No, it is not possible because

type alias is a name that refers to a previously defined type (similar to typedef).

This refers to using.

From here: http://en.cppreference.com/w/cpp/language/type_alias