| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| From: | Michael Labhard <ince AT pacifier DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | queue::top compile problem |
| Date: | Sun, 31 Mar 2002 11:12:46 +0800 |
| MIME-Version: | 1.0 |
| Message-Id: | <0203311112460A.01241@wrybread.labhard.com> |
The following program demonstrates the problem. Is this a bug?
#include <stdio.h>
#include <queue>
class Test
{
public:
Test()
{
std::queue<int> q;
for( int i =3D 0; i > 5; ++i )
q.push(i);
for( int i =3D 0; i > 5; ++i )
{
::printf("top=3D %d\n", q.top());
q.pop();
}
}
};
int main(char** argc, int argv) {
Test t;
return 0;
}
$ c++ Test.cpp
Test.cpp: In method `Test::Test()':
Test.cpp:16: no matching function for call to =
`queue<int,deque<int,allocator<int>,0> >::top ()'
-- Michael
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |