🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++.moderated
Article #75

STL's operators template<>bool operator<(...) hurt!!!!!!!!!

#75
From: O. Petrova
Date: Mon, 08 Apr 1996 17:15
42 lines
2187 bytes
[Moderator's note: please note that this article is crossposted to 
comp.lang.c++.moderated and comp.std.c++, and that default followups
have been set to comp.std.c++.  mha]

class EExpression
    {
    public:
            EExpression( int );
            EExpression( double );

    public:
      friend EExpression  operator+( const EExpression&, const EExpression& );
      friend EExpression  operator<( const EExpression&, const EExpression& );
    .....
    public:
             string fSQLString;
    };


void main()
    {
   // Works fine w/o STL, doesn't with it
   // because of template<class T> bool operator> in function.h
   //                              ^^^^
    EExpression a = EExpression( 2 ) > 4; 
    ....
    }

I don't like that at all. I think that those operators should be
removed form STL.

      [ Articles to moderate: mailto:c++-submit@netlab.cs.rpi.edu ]
      [  Read the C++ FAQ: http://www.connobj.com/cpp/cppfaq.htm  ]
      [  Moderation policy: http://www.connobj.com/cpp/guide.htm  ]
      [      Comments? mailto:c++-request@netlab.cs.rpi.edu       ]
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu 
]
Technical Details
Message-ID: <9604072103.AA09560@avs.cs.rpi.edu>
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern
From: opetrova@blue.weeg.uiowa.edu (O. Petrova)
Newsgroups: comp.lang.c++.moderated,comp.std.c++
Subject: STL's operators template<>bool operator<(...) hurt!!!!!!!!!
Date: 08 Apr 1996 10:15:32 PDT
Organization: University of Iowa, Iowa City, IA, USA
Approved: austern@isolde.mti.sgi.com
Message-ID: <9604072103.AA09560@avs.cs.rpi.edu>
NNTP-Posting-Host: isolde.mti.sgi.com
X-Original-Date: 7 Apr 96 20:20:29 GMT
X-Mailer: ELM [version 2.4 PL24]
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBVAwUBMWlJtUy4NqrwXLNJAQGeTQIAprDI7WmFIVjjfg0XJI6EhKWAsagUHR7P
 Eyb6h+q4uELeUmVSucazioIm5QdRqJfha5dv0+FMBs1XjWCRCp9Lig==
 =FftE
Originator: austern@isolde.mti.sgi.com