468,484 Members | 1,757 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

basic question on const_cast

Textbooks usually say that const_cast can "add or remove" a const
modifier. However, all the example I've seen are examples of
"remove". I've never seen a const_cast used to make something const
that was originally non_const. Is this ever done?

Thanks,

Paul Epstein
Feb 1 '08 #1
0 847

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by drowned | last post: by
7 posts views Thread by R. Anbeeswaran | last post: by
4 posts views Thread by S.Senthilvel | last post: by
18 posts views Thread by johny smith | last post: by
6 posts views Thread by AlesD | last post: by
6 posts views Thread by Simon Bailey | last post: by
6 posts views Thread by Alexander Stippler | last post: by
11 posts views Thread by Squeamizh | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by theflame83 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.