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