Jonathan Polley wrote:
> 
> On Wednesday, March 20, 2002, at 06:00 PM, Christian Mayer wrote:
> 
>> Jonathan Polley wrote:
>>
>>>
>>> MSVC 6.0 still whines about
>>>
>>> props.cxx
>>> C:\SimGear\simgear\misc\props.cxx(23) : error C2039: 'sort' : is not 
>>> a member of 'std'
>>> C:\SimGear\simgear\misc\props.cxx(23) : error C2873: 'sort' : symbol 
>>> cannot be used in a using-declaration
>>> C:\SimGear\simgear\misc\props.cxx(801) : error C2065: 'sort' : 
>>> undeclared identifier
>>>
>>
>> Dunno, but have you tried to add a
>>
>> SG_USING_NAMESPACE(std);
>>
>> above the SG_USING_STD(sort); ?
>>
> 
> If I replaced SG_USING_SD(sort) with SG_USING_NAMESPACE(std) it compiled 
> just fine.  I then found errors with FlightGear proper (but that is 
> another email).

Well, that's not the solution.
Irix has the same kind of problems, and the best way is something like:

#if !defined(MSVC)
SG_USING_SD(sort)
#endif

Erik




_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to