Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Killing is wrong. -- Losira, "That Which Survives", stardate unknown


devel / comp.lang.c++ / Re: pointer to pointer to const

SubjectAuthor
o Re: pointer to pointer to constAnand Hariharan

1
Re: pointer to pointer to const

<dd9fda80-559c-43ef-a99e-b4c2d4d2e426n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=865&group=comp.lang.c%2B%2B#865

  copy link   Newsgroups: comp.lang.c++
X-Received: by 2002:a05:620a:40d2:b0:767:e5f8:8372 with SMTP id g18-20020a05620a40d200b00767e5f88372mr63479qko.8.1689473921071;
Sat, 15 Jul 2023 19:18:41 -0700 (PDT)
X-Received: by 2002:a9d:7685:0:b0:6b9:7e5a:413d with SMTP id
j5-20020a9d7685000000b006b97e5a413dmr7146693otl.0.1689473920677; Sat, 15 Jul
2023 19:18:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c++
Date: Sat, 15 Jul 2023 19:18:40 -0700 (PDT)
In-Reply-To: <4294d9f3$0$306$ba624c82@nntp05.dk.telia.net>
Injection-Info: google-groups.googlegroups.com; posting-host=24.99.190.24; posting-account=bTeHoAkAAAB0WHf8fddc6rmiFGF_Yz1z
NNTP-Posting-Host: 24.99.190.24
References: <4294d9f3$0$306$ba624c82@nntp05.dk.telia.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dd9fda80-559c-43ef-a99e-b4c2d4d2e426n@googlegroups.com>
Subject: Re: pointer to pointer to const
From: mailto.a...@gmail.com (Anand Hariharan)
Injection-Date: Sun, 16 Jul 2023 02:18:41 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1671
 by: Anand Hariharan - Sun, 16 Jul 2023 02:18 UTC

On Wednesday, May 25, 2005 at 8:02:58 PM UTC, Morten Frederiksen wrote:
> Can anyone explain why this does not work?
> int a = 42;
> int* b = &a;
> const int** c = &b; // error
> I get "invalid conversion from `int**' to `const int**'" from the
> compiler. Logically there should not be a problem, so perhaps it is a
> limitation on the compiler.
> Regards
> Morten Frederiksen

This is a FAQ:

https://isocpp.org/wiki/faq/const-correctness#constptrptr-conversion

best,
- Anand


devel / comp.lang.c++ / Re: pointer to pointer to const

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor