C++ STL carte , std::pair comme la clé

C'est de cette façon que j'ai définie par carte.

std::map<std::pair<std::string,std::string>, int>  edMap;

Je suis confondre sur la façon d'insérer des valeurs , je suis d'erreur de compilation toujours.
C'est de cette façon que j'essaie d'insérer.

    std::pair<std::string,std::string> key;
    edMap.insert(key,d);

Erreur de Compilation est

1>------ Build started: Project: spellsuggest, Configuration: Debug Win32 ------
1>Compiling...
1>breathalyzer.cpp
1>d:\personal\spellsuggest\spellsuggest\breathalyzer.cpp(70) : error C2664: 'std::_Tree<_Traits>::iterator std::_Tree<_Traits>::insert(std::_Tree<_Traits>::iterator,const std::pair<_Ty1,_Ty2> &)' : cannot convert parameter 1 from 'std::pair<_Ty1,_Ty2>' to 'std::_Tree<_Traits>::iterator'
1>        with
1>        [
1>            _Traits=std::_Tmap_traits<std::pair<std::string,std::string>,int,std::less<std::pair<std::string,std::string>>,std::allocator<std::pair<const std::pair<std::string,std::string>,int>>,false>,
1>            _Ty1=const std::pair<std::string,std::string>,
1>            _Ty2=int
1>        ]
1>        and
1>        [
1>            _Ty1=std::string,
1>            _Ty2=std::string
1>        ]
1>        and
1>        [
1>            _Traits=std::_Tmap_traits<std::pair<std::string,std::string>,int,std::less<std::pair<std::string,std::string>>,std::allocator<std::pair<const std::pair<std::string,std::string>,int>>,false>
1>        ]
1>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>Build log was saved at "file://d:\personal\spellsuggest\spellsuggest\Debug\BuildLog.htm"
1>spellsuggest - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Pour référence future, quand vous posez des questions sur Stack Overflow qui mentionne des erreurs de compilation, assurez-vous de toujours inclure (c'est à dire de copier-coller) le compilateur réel message d'erreur mot à mot dans votre post. Nous sommes des êtres humains, pas des compilateurs.
Absolument rien à voir avec la question - mais je suis intrigué à un fichier nommé "breathalyzer.cpp" à l'intérieur d'un projet(?) nommé "spellsuggest".
commencé avec quelque chose et maintenant avec quelque chose. petite goofup.
Quoi de mal avec: edMap[key] = d;

OriginalL'auteur Avinash | 2011-06-16