if (iter->tokenType==Token::NAME && wstate==WIRE)
{
wstate=WIRENAME;
Wire tempwire;
tempwire.Name=iter->token;
tempwire.width=bus_msb;
std::list<Wire>::const_iterator witer = LargestWireName(tempwire,tempModule.wires);
if (witer!=tempModule.wires.end())
{
tempModule.wires.insert(witer,tempwire);
}
else
{
tempModule.wires.push_back(tempwire);
}
}
When I try calling the insert function for wires, i am getting this error...
error: no matching function for call to ‘std::list<Wire, std::allocator<Wire> >::insert(std::_List_const_iterator<Wire>&, Wire&)’
can anyone help?? please
Aucun commentaire:
Enregistrer un commentaire