Re: [GD-General] Compile times
Brought to you by:
vexxed72
From: Jesse J. <jes...@mi...> - 2002-12-16 12:27:11
|
At 8:19 PM -0600 12/15/02, brian hook wrote: > > but now I feel much more comfortable with my 'simple' handles. > >I think this is also a big part of my gripe with smart pointers -- much >like STL, I don't see them solving real world problems. For the most part that might be true if you're not using exceptions. But if you are then it's IMO nearly mandatory to encapsulate the act of newing/deleting into a class (like std::auto_ptr) and similarly adding/removing references. Even if you aren't using exceptions manually managing ref counts can get pretty hairy with large code bases. (I saw this with InDesign which is a huge desktop publishing system which used ref counting *very* heavily, but exceptions very little, and didn't add a smart pointer class until late in development). -- Jesse |