Re: question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3 February 2014 17:37, Graziano Servizi wrote:
> How could this (included) very short code work?
> It isn't a NOT SAFE conversion that made inside void fun?

(This is not a question about GCC, so it would be better in a general
C++ forum.)

static_cast does not check for safe conversions, it's your
responsibility to use it correctly.

If you aren't sure the conversion is safe then use dynamic_cast.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux