| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Message-Id: | <s8a3e8b0.096@experian.com> |
| X-Mailer: | Novell GroupWise 4.1 |
| Date: | Fri, 11 Feb 2000 10:43:00 +0000 |
| From: | Alan Griffiths <alan DOT griffiths AT experian DOT com> |
| 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.)
>>> <wang-zy AT jlonline DOT com> 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 <memory>
using namespace std;
class A
{
public:
A() : b(new int(8))
{
}
auto_ptr<int> 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |