On Sun, Jul 10, 2005 at 12:39:24AM +0200, Carlos Vidal wrote: > > Change the type of the left side then ;-). Try taking away the > constantness, like: > > ItemList::reverse_iterator anchor = _items.rbegin();
ok, that's done, now i'm at: "Menu.cc", line 1059: Error: Could not find a match for std::advance<std::ForwardIterator, std::Distance>(std::__reverse_bi_iterator<std::list<bt::MenuItem>::iterator, std::bidirectional_iterator_tag, bt::MenuItem, bt::MenuItem&, bt::MenuItem*, int>, unsigned). "Menu.cc", line 1069: Error: Cannot use std::__reverse_bi_iterator<std::list<bt::MenuItem>::iterator, std::bidirectional_iterator_tag, bt::MenuItem, bt::MenuItem&, bt::MenuItem*, int> to initialize std::__reverse_bi_iterator<std::list<bt::MenuItem>::const_iterator, std::bidirectional_iterator_tag, bt::MenuItem, const bt::MenuItem&, const bt::MenuItem*, int>. "Menu.cc", line 1070: Error: The operation "std::__reverse_bi_iterator<std::list<bt::MenuItem>::const_iterator, std::bidirectional_iterator_tag, bt::MenuItem, const bt::MenuItem&, const bt::MenuItem*, int> != const std::__reverse_bi_iterator<std::list<bt::MenuItem>::iterator, std::bidirectional_iterator_tag, bt::MenuItem, bt::MenuItem&, bt::MenuItem*, int>" is illegal. 3 Error(s) detected. > Supposedly the STL should define both "const reverse_iterator begin()" > and "reverse_iterator begin()", but is hard from the compiler point of > view to tell the difference or compose the right combination of consts > inside a template code (the resulting assembler code is identical, > these distinctions are meant to "help" us, programmers ;-). heh, well, sometimes being helpful isn't exactly helpful. ;) > > Solaris' compiler is extremely anal, as is IRIX's MIPSpro and VMS's DEC C. > > Yeah, each in its own way! :-) This is why I love script languages so much! it's actually why i like them. i know that any C code i write will compile anywhere at all. :) -brian -- "I fear death only slightly more than I hate my life." --8-bit Theater -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] List archives: http://asgardsrealm.net/lurker/splash/index.html
