This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++-v3 useable ?


On Fre, 26 Jan 2001, Richard D. Copeland, Jr. wrote:

> > #include <vector.h>
> > 
> > int main()
> > {
> >   vector <char *> vszbar;
> >   vector <char *>::iterator iter;
> >       for (iter = vszbar.begin(); iter != vszbar.end(); iter++);
> > }
> >     std::vector <char*> foo;
> >     foo.push_back(e);
> > }
> > 

> The second example shouldn't work (i.e. you're trying to push_back a 
> char into a collection of char*'s...) 

Damn. Sorry. I stripped this down from a 32k size file. I'll try to do a 
valid testcase again. (will post in a few minutes). 

> Not sure about the first, though. 

The first one compiles fine with every other compile I have access to. I 
don't understand why libstdc++-v3/gcc3 doesn't like it. Any ideas?


Dirk

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]