🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.c++.moderated
1 messages
1 total messages Started by O. Petrova Mon, 08 Apr 1996 17:15
STL's operators template<>bool operator<(...) hurt!!!!!!!!!
#75
Author: 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 
]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads