On 11/23/2009 10:54 PM, Martin Spott wrote:
> Tim Moore wrote:
>> Update of /var/cvs/SimGear-0.3/source/simgear/scene/material
>> In directory baron.flightgear.org:/tmp/cvs-serv25138/simgear/scene/material
>>
>> Modified Files:
>>        Effect.hxx 
>> Log Message:
>> Drop required Boost version from 1.37 to 1.34
>>
>> Use boost/tr1 to bring in std::tr1::unordered_map instead of the Boost
>> version.
>>
>>
>> Author: Tim Moore <timo...@redhat.com>
>>
>>
>> Index: Effect.hxx
>> ===================================================================
>> RCS file: /var/cvs/SimGear-0.3/source/simgear/scene/material/Effect.hxx,v
>> retrieving revision 1.8
>> retrieving revision 1.9
>> diff -u -r1.8 -r1.9
>> --- Effect.hxx  22 Nov 2009 00:00:01 -0000      1.8
>> +++ Effect.hxx  22 Nov 2009 22:23:01 -0000      1.9
>> @@ -19,8 +19,9 @@
>>
>> #include <vector>
>> #include <string>
>> +#include <boost/tr1/unordered_map.hpp>
> 
> According to my understanding, in order to use the standard C++ header,
> this line should read:
> 
>   #include <tr1/unordered_map>
> 
> Am I wrong ?
No, but boost/tr1 uses the classes and functions from std::tr1 if available;
otherwise it substitutes its own. As TR1 is not implemented everywhere,
and most of TR1 was based on Boost code anyway, it works out well. However,
it turns out that boost/tr1/unordered_map.hpp isn't in Boost 1.34, so it looks
like it's back to 1.37.

Tim

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to