
4 Oct
2005
4 Oct
'05
6:27 p.m.
John wrote: The trouble is pimpl's are normally idioms not libraries (because you have to write all the forwarding functions by hand). If I understand what you're doing here correctly, your pimple class is really just another smart pointer, but with deep copy semantics.
It's simple indeed, that's the intention. However, it does provide all advantages of the original idiom, plus more (automatically memory management, copy-by-value, most often no need for con/destructors). I know that have helped me a lot, that's why I'm suggestion its inclusion in boost. Regards, Asger Mangaard