Error C7510 ‘iterator’: use of dependent type name must be prefixed with ‘typename’
//报错代码
template <typename T>
void myprint(T& v) {T::iterator it v.begin(); //error c7510 occurfor (; it ! v.end(); it){std::cout << *it <<…
IDE Microsoft Visual Studio Community 2019
错误列表 错误代码
#include <iostream>
#include <list>
using namespace std;template <typename T>
void output_list(list<T> lst) {list<T>::iterator it lst.begin(); // 错误语句for (; i…