Line 11: Char 24: error: use 'template' keyword to treat 'toCharArray' as a dependent template name char arr[] = s.toCharArray<>(); ^ template code example
Example: making a list of chars in c#
string data = "ABCDEFGHIJ1fFJKAL";
List<char> datalist = new List<char>();
datalist.AddRange(data);