vendredi 28 octobre 2016

Expression: map/set iterators debug assertion for a map of set

Why does this expression hit the debug assertion "Expression: map/set iterators incompatible" in VS 12 ?

std::map<int, std::set<int>> x = 
{
    { 1, {2,3,4} },
    { 5, {6,7,8} }
};

Aucun commentaire:

Enregistrer un commentaire