From -7511331115700171907
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,fc6467e389022a2,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1994-02-08 15:09:34 PST
Newsgroups: comp.std.c++
Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!s5!is1.is.morgan.com!is.morgan.com!jlieb
From: jlieb@is.morgan.com (Jerry Liebelson)
Subject: Is char** to const char ** illegal?
Message-ID: <1994Feb8.230934.18077@is.morgan.com>
Sender: news@is.morgan.com
Nntp-Posting-Host: bwit111
Organization: Morgan Stanley & Company, Inc.
Date: Tue, 8 Feb 1994 23:09:34 GMT
Lines: 23

Hi,
  Does anyone know what the Standard says (or does not say) about the
following conversion:

        char *s;
        const char** sp = &s;

  CenterLine 2.0.4 does not report this conversion as being an error, but
  Lucid 3.1 does.

  Even though there is an additional level of indirection, why should
  such usage be any less legal than

		char *s;
		const char *sp = s;		

  The assignment is to a more restricted, safer (const-wise) pointer in
both cases.

-- 
Jerry Liebelson
jlieb@is.morgan.com
73477.2740@compuserve.com


