我有这个CSVParser类,我继承了它,我需要<<
在派生类中调用运算符:
#include "dbcsv.h"
DbCsv::DbCsv() : CSVParser()
{
}
void addColumn(QString &source, const QString &val, const unsigned int s) // 0:duplicate, 1:unique
{
CSVParser::<< source.toStdString();
}
void removeColumn(QString &source, const QString &val)
{
}
我收到此错误:
dbcsv.cpp: In function 'void addColumn(QString&, const QString&, unsigned int)':
dbcsv.cpp:10: error: expected unqualified-id before '<<' token
dbcsv.cpp: At global scope: