On Thursday, March 21, 2002, at 06:43 AM, David Megginson wrote:

> Jonathan Polley writes:
>
>> 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
>
> OK, first let's make sure that my code is correct ANSI C++ before we
> beat up on MSVC.  Basically, I have this:
>
>   #include <algorithm>
>   SG_USING_STD(sort);
>
> which is equivalent to
>
>   #include <algorithm>
>   using std::sort;
>
> Is this correct?  I think it is, but confirmation would be nice.
>
> If this is correct, then the next step is to add #ifdef's for MSVC
> (yech).

I tried 'using std::sort' in place of 'SG_USING_STD(sort)' and got the 
same errors.

Jonathan Polley


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

Reply via email to