This is the mail archive of the libstdc++@sourceware.cygnus.com 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]

stl_deque.h:818: warning: comparison between signed and unsigned


I get this message with gcc version gcc-2.95 19990524 (prerelease)
when compiling the following program "with g++ -c warning.cc -Wall"

// begin
#include <deque>

deque<int> foo;

void f(int index)
{
  foo.erase(foo.begin()+index);
}
// end

It's nothing compared to the warnings I get with X :-)
but annoying anyway when it's the only warning I get.

Wim Yedema

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