[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.1 (work1) now available
- From: Patrick Rapin <toupie300@...>
- Date: Sat, 7 Apr 2012 18:07:16 +0200
> This HAS to be a reinterpret_cast because all casts through void* are
> considered unsafe by the compiler.
Sorry, but this is wrong.
A compiler will generate error when using static_cast to convert
between *unrelated* pointer types.
The generic void* pointer is considered related with all T* pointers
(without const or volatile qualifier).
Also, the cast from A* to B* is accepted by static_cast if B derives
from A (the other way round, converting B* to A* does not need any
cast of course).
- References:
- Re: [ANN] Lua 5.2.1 (work1) now available, Miles Bader
- Re: [ANN] Lua 5.2.1 (work1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.2.1 (work1) now available, Miles Bader
- Re: [ANN] Lua 5.2.1 (work1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.2.1 (work1) now available, Miles Bader
- Re: [ANN] Lua 5.2.1 (work1) now available, Miles Bader
- Re: [ANN] Lua 5.2.1 (work1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.2.1 (work1) now available, Miles Bader
- Re: [ANN] Lua 5.2.1 (work1) now available, Miles Bader
- Re: [ANN] Lua 5.2.1 (work1) now available, Rena
- Re: [ANN] Lua 5.2.1 (work1) now available, Miles Bader
- Re: [ANN] Lua 5.2.1 (work1) now available, Coda Highland
- Re: [ANN] Lua 5.2.1 (work1) now available, Peter Cawley
- Re: [ANN] Lua 5.2.1 (work1) now available, Patrick Rapin
- Re: [ANN] Lua 5.2.1 (work1) now available, Coda Highland