Re: Problem with COW...

2003-09-10 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > We (you ) should take a look at Sutters variant as well: > He calls the creature a ValuePtr. Absolutely reasonable. I don't have Sutter's books here however (at work). If you could post the code I'll look at it next week. > (I'll come back to actuall impl.) Good. So

Re: Problem with COW...

2003-09-10 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Angus Leeming wrote: >> I need some guidance here... My feeling is to add 'create_ptr' and >> 'destroy_ptr' template parameters to copied_ptr... > | I remembered tha boost::shared_ptr has a Deleter template parameter., so I am | not talking crap here. >

Re: Problem with COW...

2003-09-10 Thread Angus Leeming
Angus Leeming wrote: > I need some guidance here... My feeling is to add 'create_ptr' and > 'destroy_ptr' template parameters to copied_ptr... I remembered tha boost::shared_ptr has a Deleter template parameter., so I am not talking crap here. We would need a Creator parameter too. Something lik

Re: Problem with COW...

2003-09-10 Thread Angus Leeming
Angus Leeming wrote: > Hmmm > > class BufferParams { > public: > AuthorList & authors(); > private: > /** Use the Pimpl idiom to hide those member variables that > would otherwise drag in other header files. > */ > class Impl; > lyx::support::c

Problem with COW...

2003-09-10 Thread Angus Leeming
Hmmm class BufferParams { public: AuthorList & authors(); private: /** Use the Pimpl idiom to hide those member variables that would otherwise drag in other header files. */ class Impl; lyx::support::cow_ptr pimpl_; }; AuthorList & BufferParams