Hi Stefan, ----- "Stefan C. Müller" a écrit : > Small patch fixing bugs I've encountered while getting the current CVS > to build in MSVC. > * std::lower_bound was used with the key-type of a map, but > lower_bound expects the value-type of the collection it works on, with is > std::pair. MSVC seems to be more strict about this.
As far as I can tell, this is not true. The third parameter type is independant from the type of the container, and should only match the type of the second parameter of the predicate. The current code compile under MSVC 7.1 and under MSVC 9.0. Looking at the lower_bound code in the MSVC 8 <algorithm>, I think it is the same for VS2005. What is your msvc version, and what is the error message you are seeing ? -Fred -- Frédéric Bouvier http://my.fotolia.com/frfoto/ Photo gallery - album photo http://fgsd.sourceforge.net/ FlightGear Scenery Designer ------------------------------------------------------------------------- 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