| delorie.com/archives/browse.cgi | search |
| Message-Id: | <3.0.16.19971202160424.2b4f49c2@hem1.passagen.se> |
| Date: | Tue, 02 Dec 1997 16:11:52 -0500 |
| To: | djgpp AT delorie DOT com |
| From: | Peter Palotas <blizzar AT hem1 DOT passagen DOT se> |
| Subject: | Deque warnings... |
| Mime-Version: | 1.0 |
Why do I get a bunch of warnings when compiling the following program, when
compiling with '-Wall'? (All the warnings refer to `deque.h', so either
there are errors in STL, or I'm doing something terribly wrong).
#include <stdio.h>
#include <deque>
int main(void)
{
deque<int> v;
v.push_back(0);
v.push_back(1);
v.push_back(2);
v.push_back(3);
v.push_back(4);
while (!v.empty())
{
printf("item: %i\n", v.front());
v.pop_front();
};
return 0;
}
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |