I'm trying to generate comma-separated list of vectors of given types to instantiate std::variant of vectors. (I didn't want to write a huge one-line code so I decided to use macros. I am open to new suggestions for this root problem).
Is it possible to write macro which would define a preprocessor variable which would appear to be a list of comma-separated vectors of given types:
#define INTEGRAL_TYPES char, int, long long, size_t
#define MAGIC_MACRO(x) ???
#define SEQUENTIAL_TYPES MAGIC_MACRO(INTEGRAL_TYPES) // this will generate std::vector<char>, std::vector<int>, std::vector<long long>, std::vector<size_t>