auto_ptr's problem
wang-zy@jlonline.com
wang-zy@jlonline.com
Fri Feb 11 02:16:00 GMT 2000
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.
cygcheck.out
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: text/x-algol68
Size: 6112 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20000211/a49260d5/attachment.bin>
More information about the Cygwin
mailing list