samedi 21 novembre 2020

Convert C++ 11 code map with pair into C++ 03

how can i convert C++ 11 code map with pair into C++ 03

    std::map<string, pair<CO3d*, DWORD>> Entities;
    std::map<string, pair<CO3d*, DWORD>> Objects;
    std::map<string, pair<CO3d*, DWORD>> Others;

trying to load

        Entities[] = { pO3D, 10 };
        Objects[] = { pO3D, 10 };
        Others[] = { pO3D, 10 };

and get syntax error

syntax error : {
syntax error : missing ';' before '{'

Aucun commentaire:

Enregistrer un commentaire