On Sat, Jul 09, 2005 at 09:25:07PM +0200, Carlos Vidal wrote:
> The message looks cryptic, but basically it says that it cannot go
> from a non-const type to const. Try to cast the right hand side
> operand to force both sides of the '=' to the same type, like:
> 
> ItemList::const_reverse_iterator anchor =
> (ItemList::const_reverse_iterator)(_items.rbegin());

that gets me:

"Menu.cc", line 1055: Error: Cannot cast from 
std::__reverse_bi_iterator<std::list<bt::MenuItem>::iterator, 
std::bidirectional_iterator_tag, bt::MenuItem, bt::MenuItem&, bt::MenuItem*, 
int> to std::__reverse_bi_iterator<std::list<bt::MenuItem>::const_iterator, 
std::bidirectional_iterator_tag, bt::MenuItem, const bt::MenuItem&, const 
bt::MenuItem*, int>.

> Check also if your compiler doesn't have a flag to relax a bit the
> type convertion rules, Solaris' compiler seems tighter than gcc (what
> doesn't mean it's better or worse, just different! ;-)

Solaris' compiler is extremely anal, as is IRIX's MIPSpro and VMS's DEC C.

you get used to it after a while.  it's not a bad thing at all.  ;)

as to making it less anal?  i have no idea, i've never wanted to do that
before.  i'll look into it however.

-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

Reply via email to