lundi 18 janvier 2021

Convert the code of std::map from visual studio 2013 to visual studio 2003

it works with visual studio 2013 but trying this code at visual studio 2003 Error

.cpp

void CObj::InsertCM(string szFileName, CObj3D* pDD, int nType)
{
    if(nType == ANIMATED_MESH)
        Entities[szFileName] = { pDD, GetTickCount() + SEC(10) }; // this line is the error
}
error C2143: syntax error : missing ';' before '{'

.h

class CObj
{
    map<string, pair<CObject*, DWORD> > Entities;
}

can someone tell me how to convert this code into vs2003

Aucun commentaire:

Enregistrer un commentaire