Okay. So what I'm trying to do here is pass a number of string objects as function parameters but (love my skills) I messed up with initializer_list. Big time.
1 2 3 4 5 6 7
void print_string (vector <string> vec)
{
...
}
print_string ({"...", "Some more", ... "As many as wanted"});
But apparently I cannot convert an initializer list to a vector. Even if I use auto, I cannot get the program to work. Any workarounds? Thanks.