 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
chris jefferson Guest
|
Posted: Wed May 11, 2005 8:59 pm Post subject: Solution to DR 410 disagrees with existing implementations? |
|
|
The solution to DR 410 adds the definition exact definition of various
operators to stack and queue. It just passes each operator through to
the underlying container, so for example x<=y is implemented as x.c<=y.c
In the rationale, it says:
"There isn't any real doubt about what these operators are supposed to
do, but we ought to spell it out."
Looking at g++ 3.3 & 4.0, icc 8.1, vc++6 and the latest version of
comeau (all the compilers I have access to), it is true they all agree
on how to implement these operators, but they all disagree with the
Defect Report!
All these compilers implement these operators in terms of just < and ==
on the underlying containers (so x<=y is implemented at !(y
I just wanted to check (and sorry if this is a silly question). Was it
intentional for the DR to disagree with most of the existing
implementations?
Chris
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
|
|
| Back to top |
|
 |
Paolo Carlini Guest
|
Posted: Mon May 16, 2005 4:18 pm Post subject: Re: Solution to DR 410 disagrees with existing implementatio |
|
|
chris jefferson wrote:
| Quote: | All these compilers implement these operators in terms of just < and ==
on the underlying containers (so x<=y is implemented at !(y
I just wanted to check (and sorry if this is a silly question). Was it
intentional for the DR to disagree with most of the existing
implementations?
|
Given the operational semantics of container comparison operators -
Table 65 - I disagree about the disagreement ;)
Paolo.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|