This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to cast away 'volatile'?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]