Hello I hope someone can explain this problem. This is the code:
class Memory{
public:
PacketPtr pkt;
MemoryPort* port;
MemCtrlQueueEntry(){};
};
And after I do:
std::list<Memory*>::iterator lastIter = NULL;
And I get the following error:
error: conversion from long int to non-scalar type std::_List_iterator<DRAMMemory::MemCtrlQueueEntry*> requested
Where is the problem, of initializing the iterator to NULL?.