On Thu, 02 Oct 2003 03:47:35 -0500
Erik Hofman <[EMAIL PROTECTED]> wrote:

> Update of /var/cvs/FlightGear-0.9/FlightGear/src/Instrumentation
> In directory baron:/tmp/cvs-serv9276
> 
> Modified Files:
>       adf.cxx 
> Log Message:
> Work around a MipsPro 7.2 STL problem
> 
> Index: adf.cxx
> ===================================================================
> RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Instrumentation/adf.cxx,v
> retrieving revision 1.1
> retrieving revision 1.2
> diff -C2 -r1.1 -r1.2
> *** adf.cxx   1 Oct 2003 21:10:34 -0000       1.1
> --- adf.cxx   2 Oct 2003 08:47:33 -0000       1.2
> ***************
> *** 115,119 ****
>                                   // If it's off, don't bother.
>       string mode = _mode_node->getStringValue();
> !     if (!_transmitter_valid || (mode != "bfo" && mode != "adf")) {
>           set_bearing(delta_time_sec, 90);
>           _ident_node->setStringValue("");
> --- 115,120 ----
>                                   // If it's off, don't bother.
>       string mode = _mode_node->getStringValue();
> !     if (!_transmitter_valid || (mode != string("bfo") && mode !=
> string("adf")))!     {
>           set_bearing(delta_time_sec, 90);
>           _ident_node->setStringValue("");

Haven't we seen this or something like it before?  Instead of "fixing" the
code every time wouldn't it be easier to supply the missing comparison
functions for your platform:

inline bool
operator!=( const std::string& lhs, const char* rhs )
{
        return lhs.compare( rhs ) != 0;
}

inline bool
operator!=( const char* lhs, const std::string& rhs )
{
        return rhs.compare( lhs ) != 0;
}

Other comparisons could be added if required.

Bernie

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

Reply via email to