Boost logo

Boost Users :

From: Jon Kalb (kalb_at_[hidden])
Date: 2002-04-29 23:19:00


At 11:00 AM +1200 4/30/02, sashan wrote:
>Is there a better way that doesn't involve 1) having to write a
>wrapper class around a basic type (or any type) and 2) doesn't
>involve changing the shared_ptr::operator==.

Do what you would do if the shared pointer were a real pointer.
Create a functor and use std::find_if().

-- 
Jon Kalb
Kalb_at_[hidden]

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net