Article View: comp.sys.mac.programmer.codewarrior
Article #815Function pointer casting
From: Edward Chew
Date: Thu, 29 May 2003 20:53
Date: Thu, 29 May 2003 20:53
6 lines
1539 bytes
1539 bytes
After upgrading to CW 8, I notice the compiler no longer allows implicit casting from function pointers (e.g. "int (*)()") to void*. Is this a bug or some weird C/C++ standards compliance thing? For now, it seems happy if I write static_cast<void*>(fn). Edward Chew
Technical Details
Message-ID:
<3ED6734A.6080600@lgl.kos.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!c03.atl99!news.webusenet.com!diablo.voicenet.com!209.242.76.12.MISMATCH!newsfeed!news.kos.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,9c35d45628066e65,start X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,9c35d45628066e65,start X-Google-Attributes: gidf635e,public X-Google-ArrivalTime: 2003-05-29 13:53:49 PST Message-ID: <3ED6734A.6080600@lgl.kos.net> Date: Thu, 29 May 2003 16:53:30 -0400 From: Edward Chew <ekc-noreply@lgl.kos.net> User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac Subject: Function pointer casting Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Original-NNTP-Posting-Host: 216.185.95.133 X-Original-Trace: 29 May 2003 16:52:33 -0400, 216.185.95.133 Organization: Kingston Online Services Lines: 7 NNTP-Posting-Host: apollo.kos.net X-Trace: newsfeed 1054241253 199.246.2.51 (29 May 2003 15:47:33 -0500) X-Original-NNTP-Posting-Host: 199.246.2.51 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!c03.atl99!news.webusenet.com!diablo.voicenet.com!209.242.76.12.MISMATCH!newsfeed!news.kos.net!not-for-mail