On 31 Aug 2008, at 08:30, Frederic Bouvier wrote:

> As Stefan says, the ( debugging ) code expects the predicate is
> commutative. Maybe there is a symbol to disable debugging code to be
> generated, or we could provide the class a second operator() :
>
>
> bool operator()(const std::string& aB, const  
> airport_map::value_type& aA) const
> {
>   return mOrdering->compare(aB,aA.first);
> }
>
> Or make the change Stefan suggests.

Adding the commutative operator is fine with me, seems like the  
cleanest solution.

Cheers,
James

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to