Bonjour,

Voici la fonction ou le compilateur m'insulte.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
typedef std::map<std::string /*nom param*/, std::string /*valeur param*/> ListParams;
typedef map<std::string, std::string>::iterator  ListParamsIt ;
................
 
void XMLMessageOut::addAttributes(const ListParams& params_list)
{
 
//ligne: 103	for( ListParamsIt  iter = params_list.begin(); iter != params_list.end(); iter++ ) {
 
			    xmlTextWriterWriteAttribute(writer, BAD_CAST (&((*iter).first)),
                                 BAD_CAST (&((*iter).second)));
	}
 
}
et l'insulte :

]../../../src/proj/XMLMessageOut.cpp: In member function `void XMLMessageOut::addAttributes(const std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >&)':
../../../src/proj/XMLMessageOut.cpp:103: error: conversion from `std::_Rb_tree_const_iterator<std::pair<const std::string, std::string> >' to non-scalar type `std::_Rb_tree_iterator<std::pair<const std::string, std::string> >' requested



Quelqu'un a une idée pourquoi le compilateur m'insulte ?

Merci en avance