const_cast<> accepting type other than ref or ptr
Guillaume Laurent
glaurent@worldnet.fr
Tue Mar 9 16:28:00 GMT 1999
"Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de> writes:
> At the risk of sounding stupid: Where exactly does it say that, in the
> standard?
Personally, I have no idea :-). I don't have a copy of the standard to
start with, I just asked on Usenet about a funny behavior (that using
const_cast<> triggers a call the to the copy ctor), and James and
Gabriel replied me that the code shouldn't have compiled in the 1st
place.
--
Guillaume.
http://www.worldnet.fr/~glaurent
More information about the Gcc-bugs
mailing list