From: John P. <pet...@cf...> - 2010-11-22 22:51:49
|
On Mon, Nov 22, 2010 at 4:43 PM, Roy Stogner <roy...@ic...> wrote: > > The boost suggestion reminds me of something I meant to bring up on > Friday (before work and vacation packing distracted me): we need to > use some shared_ptr classes. Vikram's doing some work with the > ErrorMap, and looking at that again reminds me how horrible it is to > force manual memory management into non-performance-critical sections > of user code. > > I'd originally planned on writing a SharedPtr wrapper that would hook > to C++0x or to optional boost or to an internal fallback... but maybe > it's time to bite the bullet and just introduce boost as a libMesh > dependency? Other opinions would be appreciated. Last time I checked, we have shared_ptr.hpp in the contrib/boost directory. Just #include and go for it. Well, you might want to get the latest version, but AFAIK it's just one header file. -- John |