От: | SchweinDeBurg | http://zarezky.spb.ru/ | |
Дата: | 05.10.04 05:00 | ||
Оценка: |
Windows Resources, like GDI Handles, are hard to manage correctly without creating leaks. This article shows how smart pointers can simplify this, and almost eliminate a major source of errors. It continues my previous article, Smart Pointers to boost your code, providing a practical example for using shared_ptr. (If you are not familiar with boost::shared_ptr, you should read it now!)