I encountered a syntax / parsing error, but I can not find it.
DataReader.h: 11: error: expected constructor, destructor, or type conversion to '<' Marker
Here is the DataReader.h:
#include <fstream>
#include <iostream>
#include <vector>
#ifndef DATA_H
#define DATA_H
#include "Data.h"
#endif
vector<Data*> DataReader(); // This is line 11, where the error is..
And this is the .cpp file:
#include "DataReader.h"
using namespace std;
vector<Data*> DataReader()
{
.....
}
I skipped the contents of DataReader () because I think it doesn't matter, but I can post it if necessary.
Thanks for any input / suggestions.
source
share