Re: [GD-General] Compile times
Brought to you by:
vexxed72
From: <cas...@ya...> - 2002-12-16 02:11:32
|
Jesse Jones wrote: > Hmm, I've seen smart pointers used on several projects and they have > never caused any problems. What sort of "ugly things" are you > referring to? I've seen ugly things when used wrong. For example, when using ciclyc references. I allowed weak references to avoid cycles, but ended using them in places where I shoudn't and the end I had the feeling of not having too much control over the life of the objects. They definitely increase complexity, at least when you have never used them :-) After that, I switched to a handle based resource manager, much more robust than the previous code. You have total control over the life of the objects and if you mix the handle with a reference count, you detect invalid references inmediatly. Of course, if I used smart pointers again, I wouldn't make the same errors, but now I feel much more comfortable with my 'simple' handles. Ignacio Castaño cas...@ya... ___________________________________________________ Yahoo! Sorteos Consulta si tu número ha sido premiado en Yahoo! Sorteos http://loteria.yahoo.es |