I do not get why I cannot use initializer_list
with variadic templates.
This code:
template <class... TArgs>
void Func(string name, TArgs&&... args)
{
}
Func(string("name1"), { "option1", "option2" });
gives me error:
too many arguments to function 'void Func(std::string, TArgs&& ...) [with TArgs = {}; std::string = std::basic_string<char>]'`