[Ns-bugs] [Bug 587] ListRoutingProtocol priority handling buggy

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Fri Jun 19 14:41:33 PDT 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=587





--- Comment #10 from Tom Henderson <tomh at tomh.org>  2009-06-19 17:41:33 EDT ---
(In reply to comment #9)
> Created an attachment (id=474)
 --> (http://www.nsnam.org/bugzilla/attachment.cgi?id=474) [details]
> patch to fix MacOS crappy gcc
> 
> It seems that MacOS gcc is particularly unhappy to assign an rend() iterator to
> a const_reverse_iterator in some cases.
> 
> The patch just removes the const_ from the [some] of the iterators to make gcc
> happy again.
> 
> Cheers
> 

Hi Tommaso,
Can you please check whether changeset 5c6e1f086a36 fixes this?

I guess while you were preparing a solution I was testing an alternate one that
avoids reverse iterator and just passes a comparison operator to sort().  It
passes for me on my max os x gcc-4.2.4.  I see there is a MinGW bug on this
too.

Thanks for pointing this out and fixing it too.


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list