From -1559159424366289719
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f78e5,5c35b8f8fda351d3
X-Google-Attributes: gidf78e5,public
From: James.Kanze@dresdner-bank.com
Subject: Re: sizeof ( Result(T::*)(P1,P2,..))
Date: 1999/10/21
Message-ID: <7uhtg7$aup$1@nnrp1.deja.com>#1/1
X-Deja-AN: 538733122
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <38094D7B.4A2859B5@yesic.com> <380aa1df.0@202.66.196.251>
X-Original-Date: Tue, 19 Oct 1999 13:59:42 GMT
X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I)
X-Complaints-To: news@news.unimelb.edu.au
X-Http-Proxy: 1.0 x41.deja.com:80 (Squid/1.1.22) for client 193.194.7.84
X-Trace: ariel.ucs.unimelb.edu.au 940488859 24501 128.250.37.153 (21 Oct 1999 06:54:19 GMT)
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Tue Oct 19 13:59:42 1999 GMT
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUAOA64lOEDnX0m9pzZAQELZAGAm7TI/PtBW5tCKkeBPBwpMp+lqyJvy8tD nipqqzJnUPgtjNl03PtyD/IXPTeiYmVE =EPUY
X-MyDeja-Info: XMYDJUIDkanze
NNTP-Posting-Date: 21 Oct 1999 06:54:19 GMT
Newsgroups: comp.std.c++

In article <380aa1df.0@202.66.196.251>,
  "Andrei Alexandrescu" <andrewalex@hotmail.com> wrote:

> It doesn't depend much, given that you can reinterpret_cast back and
> forth between any two pointer to member functions, and the result is
> guaranteed to be correct if you reinterpret_cast'd something and then
> reinterpret_cast it back.

Where is this guaranteed in the standard?  And between what and what?
The only guarantee I know of is that you can static_cast a pointer to an
object to void* and back to the original type without loss.  Even with
normal pointers to functions, there is no such guarantee.

--
James Kanze                    mailto:James.Kanze@dresdner-bank.com
Conseils en informatique orient�e objet/
                  Beratung in objekt orientierter Datenverarbeitung
Ziegelh�ttenweg 17a, 60598 Frankfurt, Germany Tel. +49(069)63198627


Sent via Deja.com http://www.deja.com/
Before you buy.
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



