public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* auto_ptr's problem -Reply
@ 2000-02-11  3:14 Alan Griffiths
  0 siblings, 0 replies; only message in thread
From: Alan Griffiths @ 2000-02-11  3:14 UTC (permalink / raw)
  To: wang-zy, cygwin

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-02-11  3:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-11  3:14 auto_ptr's problem -Reply Alan Griffiths

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).