/in/foo.cc: In instantiation of 'std::string toString(const std::vector<T>&) [with T = int; std::string = std::__cxx11::basic_string<char>]':
/in/foo.cc:41:21: required from here
/in/foo.cc:15:24: error: no matching function for call to 'toString(const __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)'
15 | str += toString(list[i]) + " ";
| ~~~~~~~~^~~~~~~~~
/in/foo.cc:12:13: note: candidate: 'template<class T> std::string toString(const std::vector<T>&)'
12 | std::string toString(const std::vector<T>& list) {
| ^~~~~~~~
/in/foo.cc:12:13: note: template argument deduction/substitution failed:
/in/foo.cc:15:24: note: mismatched types 'const std::vector<T>' and 'const __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'const int'}
15 | str += toString(list[i]) + " ";
| ~~~~~~~~^~~~~~~~~