🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2485

Qualification conversions & const safety

#2485
From: Greg McGary
Date: Thu, 09 Nov 1995 19:21
17 lines
888 bytes
According to sec. 4.4: Qualification conversions, paragraph 3, the
following is NOT a const-safe conversion:

	char * *  --> char const * *

whereas this is safe:

	char * *  --> char const *const *

Why?  I don't see how *adding* `const' an any level of a multi-level
pointer could lessen safety.

---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <47rvj7$d2i@magilla.magilla.cichlid.com>
Path: arc1-ca.pugleaf.net!128.32.155.1!matt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt
From: Greg McGary <gkm@magilla.cichlid.com>
Newsgroups: comp.std.c++
Subject: Qualification conversions & const safety
Date: 09 Nov 1995 19:21:46 GMT
Organization: Home
Approved: matt@physics2.Berkeley.EDU (Matt Austern)
Message-ID: <47rvj7$d2i@magilla.magilla.cichlid.com>
NNTP-Posting-Host: physics2.berkeley.edu