samedi 2 mars 2019

How to populate a map using uniform initialization with insert method

I have something like this

std::unordered_map<int, std::unordered_map<int, std::string>> p;

and i am trying this

p.insert({ 0x00 ,{0x03,"Custom"} });

no instance of overloaded function ........ takes the parameter list error Can anyone please tell me the correct syntax ?

Aucun commentaire:

Enregistrer un commentaire