It's hard to explain clearly, so sorry for unclear title. I need template class, that takes list of strings (char* ?) as template parameter. This class must have static method static string get(int i);
, that will return nth string from passed as template static list of string. How can it be coded?
Goal is to make child classes with assigned list of strings. Something like this:
class Letters : public Base<"A", "B", "C"> {};
...
std::cout << Letters::get(1);