1 2 3 4 5 6 7 8 9 10 11 12 13
|
test2.cpp: In function 'std::ostream& operator<<(std::ostream&, const GUI&)':
test2.cpp:27:13: error: no match for 'operator=' (operand types are 'std::map<std::basic_string<char>, std::basic_string<char> >::iterator {aka std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, std::basic_string<char> > >}' and 'std::map<std::basic_string<char>, std::basic_string<char> >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const std::basic_string<char>, std::basic_string<char> > >}')
for(iter=obj.settings.begin(); iter!=obj.settings.end(); ++iter){
^
test2.cpp:27:13: note: candidates are:
In file included from /usr/include/c++/4.8.2/map:60:0,
from test2.cpp:3:
/usr/include/c++/4.8.2/bits/stl_tree.h:157:12: note: std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, std::basic_string<char> > >& std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, std::basic_string<char> > >::operator=(const std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, std::basic_string<char> > >&)
struct _Rb_tree_iterator
^
/usr/include/c++/4.8.2/bits/stl_tree.h:157:12: note: no known conversion for argument 1 from 'std::map<std::basic_string<char>, std::basic_string<char> >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const std::basic_string<char>, std::basic_string<char> > >}' to 'const std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, std::basic_string<char> > >&'
/usr/include/c++/4.8.2/bits/stl_tree.h:157:12: note: std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, std::basic_string<char> > >& std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, std::basic_string<char> > >::operator=(std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, std::basic_string<char> > >&&)
/usr/include/c++/4.8.2/bits/stl_tree.h:157:12: note: no known conversion for argument 1 from 'std::map<std::basic_string<char>, std::basic_string<char> >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const std::basic_string<char>, std::basic_string<char> > >}' to 'std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, std::basic_string<char> > >&&'
|