Witajcie!
Dlaczego w poniższym kodzie nie działa mi przesuwanie iteratora:
map<string, void*> mMap;
auto it = mMap.begin();
if(hScrollBar->SbGetPos() > 0)
it += (round(hScrollBar->SbGetPos() / MENULIST_EL_HEIGHT));
error: no match for 'operator+=' (operand types are 'std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, void*> >' and '__gnu_cxx::__enable_if<true, double>::__type {aka double}')|
a analogicznie do std::vector już działa bez problemu?