Boost logo

Boost :

From: Fabrice Truillot (fte_at_[hidden])
Date: 2000-07-18 02:36:44


on 17.7.2000 21:54, Thant Tessman at thant_at_[hidden] wrote:

> Okay, here they are.

I've found a little (very little) error : in circ_ptr, line 222:

template <typename T>
RawHandle* getHandle(T* obj_ptr) {

  if (obj_ptr==0) return 0;
  
  RawHandles::iterator i = raw_handles->lower_bound(obj_ptr);

  if ((i == raw_handles->end()) || ((*i).first != obj_ptr)) {
    RawHandle* handle = new Handle<T>(obj_ptr);
    raw_handles->insert(i, std::pair<void*,RawHandle*>(
// ERROR HERE : ^^^^^ -> void*const

        obj_ptr, handle));
    return handle;
  }

  return (*i).second;
}

} // end namespace circptr

Yup. Bye,

Fab'
________________________________________________________________________


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk