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 ?




I've run across another bug in the normal_iterator stuff very recently. It 
has to do with incomplete types for std::string::iterator and std::vector::iterator, the 
two containers where __normal_iterator is used instead of (what used to 
be) T*.

#if 1

#include <vector>
class Foo;
void f()
{
  std::vector<Foo>::iterator i;
}

#else

#include <string>
class Foo;
void f()
{
  std::string<Foo>::iterator i;
}

#endif


-benjamin

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