Article View: comp.sys.mac.programmer.codewarrior
Article #1432CWP6: illegal implicit conversion...
From: Gordon Tillman
Date: Thu, 21 Sep 2000 00:00
Date: Thu, 21 Sep 2000 00:00
21 lines
1292 bytes
1292 bytes
Howdy All,
I was recompiling my CPLAT sources (from Ken Stahlman) under CWP6 and
encountered several places in the code where I am now receiving this
error. (Don't worry about what a CP_Region is...suffice it to say its a
valid thing)s:
Error: illegal implicit conversion from 'CP_Region' to 'CP_Region &'
Here is the snippet of code that causes the error:
OnDraw( CP_Region(fPlatformWindow->visRgn) );
Now, if I change the code to read like this:
CP_Region cpr(fPlatformWindow->visRgn);
OnDraw( cpr);
Then it compiles fine. I wonder why this is so???
--gordon
Technical Details
Message-ID:
<39CA60B0.DC1700A2@mindspring.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f635e,4a0d644260b480cb,start X-Google-Attributes: gidf635e,public X-Google-Thread: 10bcce,4a0d644260b480cb,start X-Google-Attributes: gid10bcce,public From: Gordon Tillman <got@mindspring.com> Subject: CWP6: illegal implicit conversion... Date: 2000/09/21 Message-ID: <39CA60B0.DC1700A2@mindspring.com> X-Deja-AN: 672570791 Content-Transfer-Encoding: 7bit X-Accept-Language: en X-Server-Date: 21 Sep 2000 19:24:06 GMT Content-Type: text/plain; charset=us-ascii Organization: MindSpring Enterprises Mime-Version: 1.0 Reply-To: got@mindspring.com Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac