how to cast away 'volatile'?

Matthew Woehlke mw_triad@users.sourceforge.net
Wed Mar 14 23:54:00 GMT 2007


Olivier Langlois wrote:
> I am finding this thread very interesting to follow 

So am I! It's fun to see what a lively (and informative!) discussion my 
simple question caused. :-)

> but I am surprised
> that nobody mentioned const_cast<> as it is the official way to cast
> away the volatile specifier. Is this because the problem is in C?

Since const_cast is not supported in C, and I am writing in C, that 
seems likely. :-)

I think at some point I actually asked 'what is the C equivalent of 
const_cast<>' (but I'm not sure if I actually posted that or just 
thought it...).

-- 
Matthew
"unsubscribe me plz!!" -- Newbies



More information about the Gcc-help mailing list