Re: Two pointers to the same obejct, two differnet values...
From: Gianni Mariani (gi2nospam_at_mariani.ws)
Date: 12/18/03
- Next message: Philippe Mesmeur: "UNICODE ostream"
- Previous message: CoolPint: "Help Please: Finding out the Iterator to the Child node in binary heap"
- In reply to: Mattias Brändström: "Two pointers to the same obejct, two differnet values..."
- Next in thread: Jumbo: "Re: Two pointers to the same obejct, two differnet values..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Dec 2003 09:44:10 EST
Mattias Brändström wrote:
...
>
> The question is this: can I rely on this behaivour and expect to get
> differnt pointers on all platforms or are there some platforms that
> might give me the same pointer no matter on how I look at an object?
I don't think the standard mandates what the "integer" value of the
pointer should be. So I don't think you can rely on ANY behavior other
than the basic pointer arithmetic and implicit pointer conversions.
>
> I suspect that this is not portable behaivour and that it's completely
> undefined and compiler depandant. It would be nice to hear your comments.
>
exactly.
- Next message: Philippe Mesmeur: "UNICODE ostream"
- Previous message: CoolPint: "Help Please: Finding out the Iterator to the Child node in binary heap"
- In reply to: Mattias Brändström: "Two pointers to the same obejct, two differnet values..."
- Next in thread: Jumbo: "Re: Two pointers to the same obejct, two differnet values..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|