[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Fwd: Replacing old C-style casts with static|reinterpret_cast?
From:       Daniel Boles <dboles.src () gmail ! com>
Date:       2017-05-10 20:50:09
Message-ID: CAKChMKOBYpU8v1YV_6mDyd_eq9O4XGT=yW7UgBgvGg0UKNiTiQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 10 May 2017 at 20:51, Chris Vine <vine35792468@gmail.com> wrote:

>
> I don't have any recommended reading I am afraid.  The ability to use C
> casts to cast from derived to private base is required by these words
> in =C2=A75.4/4 of C++14, in describing the behaviour of C casts:  "The sa=
me
> semantic restrictions and behaviors apply, with the exception that in
> performing a static_cast in the following situations the conversion is
> valid even if the base class is inaccessible" .
>
> Therefore, C casts can cast as if by static_cast to inaccessible types
> even where static_cast cannot.
>


No worries, a Standard reference is a good enough jumping-off point! I'll
be sure to start reading that just when I want to go to sleep. :)
Definitely sounds like another corner of the C/C++ maze that I didn't know
about yet. Thanks.

[Attachment #5 (text/html)]

<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div \
class="gmail_extra"><div class="gmail_quote"><span class="">On 10 May 2017 at 20:51, \
Chris Vine <span dir="ltr">&lt;<a href="mailto:vine35792468@gmail.com" \
target="_blank">vine35792468@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="m_7902761899097821695HOEnZb"><div \
class="m_7902761899097821695h5"><br> </div></div>I don&#39;t have any recommended \
reading I am afraid.   The ability to use C<br> casts to cast from derived to private \
base is required by these words<br> in  §5.4/4 of C++14, in describing the behaviour \
of C casts:   &quot;The same<br> semantic restrictions and behaviors apply, with the \
exception that in<br> performing a static_cast in the following situations the \
conversion is<br> valid even if the base class is inaccessible&quot; .<br>
<br>
Therefore, C casts can cast as if by static_cast to inaccessible types<br>
even where static_cast cannot.<br></blockquote><div><br><br></div></span><div>No \
worries, a Standard reference is a good enough jumping-off point! I&#39;ll be sure to \
start reading that just when I want to go to sleep. :) Definitely sounds like another \
corner of the C/C++ maze that I didn&#39;t know about yet. Thanks.<br>  \
<br></div></div></div></div> </div><br></div>



_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic