home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!mcsun!julienas!jussieu!clochette!clerc
- From: clerc@gla.ecoledoc.ibp.fr
- Subject: operators
- Message-ID: <1993Jan21.165621.16704@jussieu.fr>
- Keywords: operators,inheritance
- Sender: news@jussieu.fr (Le Facteur)
- Nntp-Posting-Host: clochette.ecoledoc.ibp.fr
- Reply-To: clerc@gla.ecoledoc.ibp.fr
- Organization: Universite Paris VI/Paris VII
- Date: Thu, 21 Jan 1993 16:56:21 GMT
- Lines: 17
-
-
- Id like to express in C++ the fact that operators < <= >= can
- be defined using operators > and = (eg: a < b is b > a)
- I would use a class MathObj (that would implement < <= >= using > and =)
- and derive my classes from it, redifining only the basic operators > and =
-
-
- How can I WRITE that in C++ ? (no template solution please)
-
-
- thanx in advance
-
- clerc@gla.ecoledoc.ibp.fr
-
-
-
-
-