Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #4701

Re: const_cast

From Qi <no@no.no>
Newsgroups comp.lang.c++
Subject Re: const_cast
Date 2011-05-05 10:05 +0800
Organization Aioe.org NNTP Server
Message-ID <ipt0m6$msm$1@speranza.aioe.org> (permalink)
References <f044ae2a-88f0-49c2-9f09-619cad881832@glegroupsg2000goo.googlegroups.com>

Show all headers | View raw


On 2011-5-5 2:40, asit wrote:
> is there any way to know if const_cast fails ??

Others had answered quite well.

What I want to say is that const_cast is a compile time operator, not
runtime operator.

That means, if it "fails", the code won't get compiled.
If the code is compiled, the operator won't fail any more at runtime.


-- 
WQ

Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

const_cast asit <lipun4u@gmail.com> - 2011-05-04 11:40 -0700
  Re: const_cast Noah Roberts <dont@email.me> - 2011-05-04 11:55 -0700
  Re: const_cast Martijn van Buul <pino@dohd.org> - 2011-05-04 19:06 +0000
  Re: const_cast Qi <no@no.no> - 2011-05-05 10:05 +0800

csiph-web