Frederic Bouvier schrieb:
> As Stefan says, the ( debugging ) code expects the predicate is
> commutative. Maybe there is a symbol to disable debugging code to be
> generated,
Ah, yes there is one way, but I forgot to mention. It's prossible to
#define _HAS_INTERATOR_DEBUGGING 0 (default for release builds i think).
But it effects all iterators. Even worse, the macro would need to be set
global for all of fg.
So no real alternative.
> 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);
> }
>
Worse, the operator()(const airport_map::value_type& aB, const
airport_map::value_type& aA) const would also be required (check if
well-ordered).
Stefan
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel