This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
auto_ptr's problem -Reply
- To: wang-zy at jlonline dot com, cygwin at sourceware dot cygnus dot com
- Subject: auto_ptr's problem -Reply
- From: Alan Griffiths <alan dot griffiths at experian dot com>
- Date: Fri, 11 Feb 2000 10:43:00 +0000
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@jlonline.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@sourceware.cygnus.com