Re: const problem
- From: "Bruce Chastain" <bchastain@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 14:05:20 -0500
"Doug Harrison [MVP]" <dsh@xxxxxxxx> wrote in message
news:u1v7a2lq527mpd4m46bemrj4a0s5eeojfl@xxxxxxxxxx
When you add the const and make the function a const member function, it
has the type:
const MyCompare* const this;
You need a const member function here because std::set is calling it
through a const MyCompare object, which is what the compiler is telling
you:
Understood. Thanks very much for the explaination! This was my first
experience with const member functions.
P.S. Sorry for leaving const off the example I gave you on 6/27. It
happens. :)
No problem. I learned a lot trying to figure this one out. :-)
Bruce.
.
- References:
- const problem
- From: Bruce Chastain
- Re: const problem
- From: Doug Harrison [MVP]
- const problem
- Prev by Date: Re: const problem
- Next by Date: Microsoft plans for TR1?
- Previous by thread: Re: const problem
- Next by thread: Microsoft plans for TR1?
- Index(es):