Re: [CLucene-dev] CLucene Memory Management

2009-12-09 Thread Itamar Syn-Hershko
eyer [mailto:tutm...@gmail.com] Sent: Wednesday, December 09, 2009 4:55 AM To: clucene-developers@lists.sourceforge.net Subject: Re: [CLucene-dev] CLucene Memory Management Hi Itamar, it's true - boost:shared_ptr might be overkill in many cases. But usage of raw pointers is dangerous and

Re: [CLucene-dev] CLucene Memory Management

2009-12-08 Thread Henning Meyer
Hi Itamar, it's true - boost:shared_ptr might be overkill in many cases. But usage of raw pointers is dangerous and evil. Please use boost::scoped_ptr instead (or std::auto_ptr if copies are needed). But never ever use raw pointers. Especially since I've seen that many of the topics discussed here

Re: [CLucene-dev] CLucene Memory Management

2009-12-08 Thread Itamar Syn-Hershko
Henning, Both of your points are valid, and being worked on. Once we complete the port, and have solid set of rules on the various cases where this question arises, we will write that down and have it available for all through in the project docs. Implementing boost::shared_ptr is work on progres