Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Type: text/plain; charset="iso-8859-1" From: Michael Labhard 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> Content-Transfer-Encoding: 8bit The following program demonstrates the problem.  Is this a bug? #include #include class Test { public:  Test()  {   std::queue 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,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/