22 Mar
2005
22 Mar
'05
3:11 p.m.
I realise my requirements may be rather specific, but it seems shared_ptr has picked up some typeid baggage, which I can't afford. I'm compiling using MSVC7.1 and for each object for which I use a shared_ptr, I gain an entry in my binary. For example, class Monty generates the following string in my exe: ?AU?$checked_deleter@VMonty@@@boost@@ This seems to be sucked in by this function in class sp_counted_base_impl: virtual void * get_deleter(std::type_info const & ti) { return ti == typeid(D)? &del: 0; } It isn't being used, and I can't actually see anything in boost using this, so maybe the compiler isn't doing a great job at stripping unused stuff? Anyone shed some light on this for me? Thanks Mark