Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #6093
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail |
|---|---|
| NNTP-Posting-Date | Thu, 02 Jun 2011 15:21:10 -0500 |
| From | Pete Becker <pete@versatilecoding.com> |
| Organization | Roundhouse Consulting, Ltd. |
| Newsgroups | comp.lang.c++ |
| Date | Thu, 2 Jun 2011 10:21:11 -1000 |
| Message-ID | <2011060210211182589-pete@versatilecodingcom> (permalink) |
| References | <4de78326$0$6554$9b4e6d93@newsspool4.arcor-online.net> <4de7ee37$0$7626$9b4e6d93@newsspool1.arcor-online.net> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Subject | Re: Casting template argument |
| User-Agent | Unison/2.1.4 |
| Lines | 26 |
| X-Usenet-Provider | http://www.giganews.com |
| X-Trace | sv3-BoaISBTNWYuYno1QhaUVoIJ9iYtBGIj6jEzum2YMhXsQmyN7+HG9oZ6FN+shD586zZZ6myC1JMZp9bi!hfFpoyqNFf40q2mUp7dTEyY6SeIprRYeUB5Z+n4ikykQlgQL+M06zWRPt92Sk5B3q1KfGm4= |
| X-Complaints-To | abuse@giganews.com |
| X-DMCA-Notifications | http://www.giganews.com/info/dmca.html |
| X-Abuse-and-DMCA-Info | Please be sure to forward a copy of ALL headers |
| X-Abuse-and-DMCA-Info | Otherwise we will be unable to process your complaint properly |
| X-Postfilter | 1.3.40 |
| X-Original-Bytes | 2213 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.c++:6093 |
Show key headers only | View raw
On 2011-06-02 10:10:30 -1000, Marcel Müller said: > > Well, the application is platform dependent for other, functional > reasons anyway. The reinterpret cast from const data* to const char* is > AFAIK no UB. But this does not automatically apply to casting the > function pointer to a function with another argument type. On my target > platform it makes no difference. All pointers arguments except for > member function pointers are treated in the same way. So what is UB in > general is not necessarily UB on this specific platform. > Undefined behavior arises from valid code constructs for which the C++ language definition does not impose any requirements. That doesn't depend in any way on the compiler that you're using or on the target platform. The *consequences* of using code whose behavior is undefined depend on the compiler and the platform. -- Pete Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The Standard C++ Library Extensions: a Tutorial and Reference (www.petebecker.com/tr1book)
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Casting template argument Marcel Müller <news.5.maazl@spamgourmet.org> - 2011-06-02 14:33 +0200
Re: Casting template argument Victor Bazarov <v.bazarov@comcast.invalid> - 2011-06-02 10:17 -0400
Re: Casting template argument Marcel Müller <news.5.maazl@spamgourmet.org> - 2011-06-02 22:10 +0200
Re: Casting template argument Pete Becker <pete@versatilecoding.com> - 2011-06-02 10:21 -1000
Re: Casting template argument Marcel Müller <news.5.maazl@spamgourmet.org> - 2011-06-02 22:34 +0200
Re: Casting template argument Pete Becker <pete@versatilecoding.com> - 2011-06-02 10:40 -1000
csiph-web