T
tim
Our coding standard checker is reporting an implicit user conversion
for the following:
===
std::vector<PepLines>* ptr = NULL;
std::map<peppage::ePepPage, std::vector<PepLines>*>::iterator mapiter =
NULL;
//create the containers to put the PepLines into, one vector for each
pep page
//then pass the pointer into the container. The destruction of these
objects
//will be handled in the CPepPageGraphics destructor.
for(int
looper=peppage:
EP_PAGE_NULL;looper<peppage:
EP_PAGE_END_PAGE;looper++)
{
ptr = new std::vector<PepLines>;
m_PageGraphicsCollection.insert(
make_pair(static_cast<peppage::ePepPage>(looper),ptr ) );
}
===
m_PageGraphicsCollection is defined thus:
std::map<peppage::ePepPage, std::vector<PepLines>*>
m_PageGraphicsCollection;
===
The error is noted on the last line of code,
m_PageGraphicsCollection.insert...
I thought I'd matched up my types correctly, any ideas?
for the following:
===
std::vector<PepLines>* ptr = NULL;
std::map<peppage::ePepPage, std::vector<PepLines>*>::iterator mapiter =
NULL;
//create the containers to put the PepLines into, one vector for each
pep page
//then pass the pointer into the container. The destruction of these
objects
//will be handled in the CPepPageGraphics destructor.
for(int
looper=peppage:
{
ptr = new std::vector<PepLines>;
m_PageGraphicsCollection.insert(
make_pair(static_cast<peppage::ePepPage>(looper),ptr ) );
}
===
m_PageGraphicsCollection is defined thus:
std::map<peppage::ePepPage, std::vector<PepLines>*>
m_PageGraphicsCollection;
===
The error is noted on the last line of code,
m_PageGraphicsCollection.insert...
I thought I'd matched up my types correctly, any ideas?