Try to change the code like this. Change template class to be a pointer
CParserOutNode*
Not sure what the method
parser->Parse
is doing, though.
std::vector<CParserOutNode*> m_Param;
int ret = parser->Parse(bbuf, &m_Param, (char*)commandname.c_str(), &TestType);
if (ret==0)
{
std::vector<CParserOutNode*>::iterator iter;
iter = m_Param.begin();
while (iter != m_Param.end())
{
}
}