This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

auto_ptr's problem


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]