Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: X-Mailer: Novell GroupWise 4.1 Date: Fri, 11 Feb 2000 10:43:00 +0000 From: Alan Griffiths To: wang-zy AT jlonline DOT com, cygwin AT sourceware DOT cygnus DOT com Subject: auto_ptr's problem -Reply In that (quite old) distribution the auto_ptr template had been commented out of the header (because, at the time, the standard was in flux.) >>> 11/February/2000 10:13am >>> Hello, everyone. I use Cygwin B20.1 under Win98. I'm in trouble now with the simple application (which I believe to be correct). Here is the code: #include using namespace std; class A { public: A() : b(new int(8)) { } auto_ptr const b; // I also tried to delete the const }; When I compile it, the compiler output: t.cpp:11: syntax error before `const' t.cpp: In method `A::A()': t.cpp:8: class `A' does not have any field named `b' I'm wondering is this a bug. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com