Re: libstdc++/10783: std::vector::reverse_iterator could be smaller

Paolo Carlini <[email protected]>
Newsgroups gmane.comp.gcc.prs
Message-ID <[email protected]>
The following reply was made to PR libstdc++/10783; it has been noted by GNATS.

From: Paolo Carlini <[email protected]>
To: [email protected],  [email protected],  [email protected], 
 [email protected],  [email protected],  [email protected]
Cc:  
Subject: Re: libstdc++/10783: std::vector::reverse_iterator  could be smaller
Date: Sun, 18 May 2003 21:35:50 +0200

 Well, on second thought, and giving justice to the clear
 explanation in V&J, in their §16.2.2 it is clearly stated
 that the EBCO has no equivalent for data members: this is
 reasonable considering that it would create problems with
 the representation of pointers to members.
 
 Therefore reverse_iterator is expected to have the same
 size of its iterator empty base (thanks to EBCO) + the size
 of its member current, that is two times the size of a
 plain iterator.
 
 Do you agree?
 
 Paolo.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10783
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.