On Mon, Jan 28, 2008 at 06:00:34PM +0100, Mark de Wever wrote: > On Mon, Jan 28, 2008 at 12:18:50PM +0200, Pauli wrote: > > Adding boost smart_ptr library to wesnoth would help a managing > > dynamically allocated memory. I have plan to optimize config class with > > shared_ptr in 1.5. Shared_ptr adds reference counting to any pointer. It > > provides very simple interface to eliminate memory leaks. > > Adding it now will break the feature freeze and add a new dependency.
Not necessarily. You need only a few header files which you can put into the Wesnoth code into 3rd_party/. Boost has a tool which determines the dependencies of header files. > I'd love to see boost-smart_ptr in 1.5 but IMO too late for 1.4. I do > like this library and I think it can be useful in more places. > > As a side note I'd like to have boost::smart_ptr and not the tr1 > variation since not all platforms have easy support for boost 1.34(.1). > Debian Etch uses boost 1.33.1. This confuses me. Not sure whether you want ::boost::smart_ptr or ::tr1::smart_ptr. Jens _______________________________________________ Wesnoth-dev mailing list [email protected] https://mail.gna.org/listinfo/wesnoth-dev
