On Sat, Mar 01, 2003 at 11:00:36AM +0100, Lars Gullik Bj?nnes wrote: > | What do you mean "really are pointers" ? Practically everything in LyX > | is allocated off the heap - this means everywhere should use pointers ? > > No... I am unsure about practices to cast pointers to references.
You know, I did ask you about this before, and you agreed that temporary behaviour to enable us to do this was acceptable. Otherwise we are stuck with pointers everywhere forever and ever. > | I don't understand how or why you'd use a smart pointer to pass a > | reference to, say, LyXText::transposeChars() > > I wouldn't pass the reference but a smart_ptr<Buffer*> whatever. Please explain the advantages (disadvantages are obvious: boost code included in the headers, more complicated function signatures, etc.) > | p.s. welcome back ;) > > Then not. Now yes. Then you read it at exactly the right time, so I win ! :) john