> "Mark Weaver" <[EMAIL PROTECTED]> wrote: > > > However, if I understand you code correctly, the following is the > > > equivalent of what you were doing before: > > > > > > theNodeList->addNode(&(*it).second->rtree()); > > > > > Unfortunately rtree() returns a const pointer, and addNode takes a > non-const > > pointer. > > I think this is one of the cases where you are justified in using a > const_cast. That seemed to do the trick, thanks very much!
Mark
