C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Solution to DR 410 disagrees with existing implementations?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards
View previous topic :: View next topic  
Author Message
chris jefferson
Guest





PostPosted: Wed May 11, 2005 8:59 pm    Post subject: Solution to DR 410 disagrees with existing implementations? Reply with quote



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





PostPosted: Mon May 16, 2005 4:18 pm    Post subject: Re: Solution to DR 410 disagrees with existing implementatio Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.