Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: "Default User" Newsgroups: comp.std.c++ Subject: Re: Pointers to member functions Date: Fri, 26 Aug 2011 11:19:07 -0700 (PDT) Organization: unknown Lines: 31 Sender: std-cpp-request@vandevoorde.com Approved: james.dennett@gmail.com Message-ID: <9bpo9kFhgoU1@mid.individual.net> References: <9bip7iFevdU1@mid.individual.net> X-Trace: news.albasani.net 9+Vw8M1mToeTfISI45FNyQDip426earZ0jvxrDA+ROD1M5tzzArnRZJv/lMVwXU3qgwYk4WvtZRcDynPgtgh9Q== NNTP-Posting-Date: Fri, 26 Aug 2011 18:19:10 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="vUe6GYfK2VKKLYMU4cweuNTwvhEXY9Hjq+g/As/xaN9JbyMyqUb6V6XRqyKNjNt+MyBglh64MmtrQBJbCi89ag5KQw/MdKZNbaAPsOUBcRtN5ENcX2hwbyHnFx3xIEwr"; mail-complaints-to="abuse@albasani.net" X-Mailer: Perl5 Mail::Internet v2.05 X-Submission-Address: std-cpp-submit@vandevoorde.com Cancel-Lock: sha1:BSmJJ5n+e+52QYhfsUQ/9Idy9G4= X-Original-Date: Fri, 26 Aug 2011 09:18:26 -0500 Xref: x330-a1.tempe.blueboxinc.net comp.std.c++:258 "Daniel Kr=FCgler" wrote in message news:j365vr$4o8$1@dont-email.me... > > Am 25.08.2011 02:38, schrieb Default User: >> The fine folks over on the other group have pretty much convinced me >> that >> it's undefined behavior. > It seems to me that the code is well-formed and well-defined. IMO the > meaning in regard to the pointer-to-member operations is fully described > by 5.2.9 [expr.static.cast] p9, 5.5 [expr.mptr.oper] p2+4+6 in the C++03 > standard (Only little has been changed for C++11, and nothing which is > related to your example). In the interim between the original post and yours, opinion on CLC++ shifte= d to your conclusion. Thanks for the second look. I feel confident going forward with this solution now. It will save a good deal of duplicate code in the subclasses. Brian -- [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]