Can`t I perform typedef inside the class?
#include <vector>
using namespace std;
class List {
public:
typedef int Data;
class iterator;
pair<iterator,bool> insert(const Data nodeId); //<-error
private:
class Node {
typedef vector<NodeId> DepList;//<-error
};
}
I get an error missing type specifier - int assumed. Note: C++ does not support default-int