On May 14, 9:38 am, "Alf P. Steinbach" <al...@start.nowrote:
For basic PIMPL you can use e.g. boost::shared_ptr (not std::auto_ptr).
boost::shared_ptr doesn't have the correct semantics for a
compilation firewall. The Boost pointer with the correct
semantics would be boost::scoped_ptr, but I think it suffers
from the same problem as std::auto_ptr. And of course, just
aobut any smart pointer is really just introduces extra
complexity for nothing. (Unless you want to support copy and
assignment, in which case, a deep copying pointer might make
sense, if you've got one.)
--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34