16,233
社区成员
发帖
与我相关
我的任务
分享
//------------------------------------------------------------
//------------------------------------------------------------
#include <QtCore/QCoreApplication>
#include <map>
template <class T>
class MySetting
{
public:
void function();
private:
T m_data;
};
////////////////////////////////////////////////////////////////////////
template <class T>
void MySetting<T>::function()
{
std::map<int, T*>::iterator myit; //编译提示出错 error: expected ';' before 'myit'
}
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
return a.exec();
}
//----------------------------------