std::list<waveElem> waveFront;
std::make_heap (waveFront.begin(),waveFront.end(),compare);
waveFront.push_back(waveElem(sourceIntersection,g_totalNumberofIntersections+1));
std::push_heap (waveFront.begin(),waveFront.end(),compare);
std::sort_heap (waveFront.begin(),waveFront.end(),compare);
causes a whole bunch of errors. When i declare wavefront as vector, i do not get these errors but why ?
Aucun commentaire:
Enregistrer un commentaire