Re: Map
- From: "Cronus" <dark_f8@xxxxxxxxxxx>
- Date: Sat, 26 Aug 2006 03:37:18 GMT
you could probably derive a class from it that blocks changing the contents
if some flag is set, which you could set after initilazing it
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:lrbje290rgu2uet1b6tjgda8f5e817j2mh@xxxxxxxxxx
You can't. The problem with 'const' is that it is a little too extreme
for a lot of data
objects. This is a case where, in spite of the fact it is "logically"
const, you can't
declare that syntactically, because, as you point out, you won't be able
to populate it.
joe
On Mon, 21 Aug 2006 01:59:01 -0700, Alamelu
<Alamelu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
can we define a const map , which will take both key and value also to beJoseph M. Newcomer [MVP]
constants?
something like this...........
const std::map< const unsigned char,const unsigned char> sample_map;
In that case how to we populate it????????
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Map
- From: Joseph M . Newcomer
- Re: Map
- References:
- Re: Map
- From: Joseph M . Newcomer
- Re: Map
- Prev by Date: Re: Static link problems using VS2005
- Next by Date: Re: Static link problems using VS2005
- Previous by thread: Re: Map
- Next by thread: Re: Map
- Index(es):
Relevant Pages
|