Article View: comp.sys.mac.programmer.codewarrior
Article #1380Re: Pro 6, const, and type conversions
From: Eric Albert
Date: Fri, 20 Oct 2000 00:00
Date: Fri, 20 Oct 2000 00:00
21 lines
1387 bytes
1387 bytes
In article <rang-927714.15311220102000@news.visi.com>, Anton Rang <rang@trillium.adaptec.com> wrote: > In article <ejalbert-8448C2.14083019102000@nntp.stanford.edu>, Eric > Albert <ejalbert@stanford.edu> wrote: > > I'm by no means an expert on automatic type conversions or > > const-ness in C++, but I have some code that compiled without > > warnings or errors on Pro 5.3 and now doesn't compile on Pro 6, and > > I'm wondering why. > > The implicit conversion from 'char **' to 'const char **' is > prohibited in C++; the simplest example I could come up with for this > is: [two examples snipped] That makes some sense to me. Thanks for the explanation. -Eric -- Eric Albert ejalbert@stanford.edu http://www.stanford.edu/~ejalbert/
Technical Details
Message-ID:
<ejalbert-36A582.14525520102000@nntp.stanford.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<ejalbert-8448C2.14083019102000@nntp.stanford.edu> <rang-927714.15311220102000@news.visi.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,dde2101fd59215f8 X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,dde2101fd59215f8 X-Google-Attributes: gidf635e,public From: Eric Albert <ejalbert@stanford.edu> Subject: Re: Pro 6, const, and type conversions Date: 2000/10/20 Message-ID: <ejalbert-36A582.14525520102000@nntp.stanford.edu> X-Deja-AN: 683957668 References: <ejalbert-8448C2.14083019102000@nntp.stanford.edu> <rang-927714.15311220102000@news.visi.com> User-Agent: MT-NewsWatcher/3.0 (PPC) Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac