Re: this is the end()
From: NKOBAYE027 (NKOBAYE027_at_Rogers.Com)
Date: 05/11/04
- Next message: Leor Zolman: "Re: Forward declarations"
- Previous message: Denis Remezov: "Re: Integrating FILE * and int file handles"
- In reply to: Buster: "Re: this is the end()"
- Next in thread: Buster: "Re: this is the end()"
- Reply: Buster: "Re: this is the end()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 11 May 2004 15:05:56 GMT
Yes, Buster, I agree to an extent. Actually, I said, in my first post which
has gotten lost in the morass - better morass than nothing at all though -
that I am certain it has something to do with the way pointers are being
compared. I'm not comparing the pointed to counted pointers, by the way, but
the actual objects pointed to by the pointed to counted pointers. :o)
Anyway, never mind - I've resigned myself to redefining the classes (using
the auto_ptr or whatever other thingie you described) and defining my own
iterator class from scratch instead of inheriting from the typename
MathematicalSet::Set::(const_)iterator as I had previously. That way I
should be able to ensure that end() and begin() behave as I want them to.
And as to the nasty smell - nahhhh you were the first and the post was up
for a day b4 I got anything. Afterward...I suspect the locals were simply
enjoying the repartee and expecting fisticuffs.
best regards,
L.
"Buster" <noone@nowhere.com> wrote in message
news:c7qe30$svv$1@news5.svr.pol.co.uk...
>
> I think I must leave a nasty smell on any posts I respond to that
> discourages other humans from approaching.
>
> Anyway. The problem you want to solve is to do with the == and !=
> operators defined for your iterator class. They should be comparing
> positions in the set, not comparing the pointed-to counted pointers.
>
> Good luck.
>
> --
> Regards,
> Buster.
- Next message: Leor Zolman: "Re: Forward declarations"
- Previous message: Denis Remezov: "Re: Integrating FILE * and int file handles"
- In reply to: Buster: "Re: this is the end()"
- Next in thread: Buster: "Re: this is the end()"
- Reply: Buster: "Re: this is the end()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|