Re: TextClass::floatlist_ and TextClass::counters_

2008-03-06 Thread Andre Poenitz
On Thu, Mar 06, 2008 at 04:53:34PM -0500, rgheck wrote: > Andre Poenitz wrote: >> On Thu, Mar 06, 2008 at 02:52:47PM -0500, rgheck wrote: >> >>> Does anyone know why these are boost::shared_ptrs? >>> >> >> I was wondering myself several times... >> >> Maybe it was ment to save memory in the

Re: TextClass::floatlist_ and TextClass::counters_

2008-03-06 Thread rgheck
Andre Poenitz wrote: On Thu, Mar 06, 2008 at 02:52:47PM -0500, rgheck wrote: Does anyone know why these are boost::shared_ptrs? I was wondering myself several times... Maybe it was ment to save memory in the times when we had more or less static document classes. I think that must

Re: TextClass::floatlist_ and TextClass::counters_

2008-03-06 Thread Andre Poenitz
On Thu, Mar 06, 2008 at 02:52:47PM -0500, rgheck wrote: > > Does anyone know why these are boost::shared_ptrs? I was wondering myself several times... Maybe it was ment to save memory in the times when we had more or less static document classes. > I don't myself see any > reason for this in th

Re: TextClass::floatlist_ and TextClass::counters_

2008-03-06 Thread Abdelrazak Younes
rgheck wrote: Does anyone know why these are boost::shared_ptrs? The only benefit is to minimize header dependencies (Counters.h and FloatList.h) but the same can be done by pimpl them instead (which might be a good idea anyway). I don't myself see any reason for this in the current imple