[geos-devel] GeometryFactory - call for explanation

strk at refractions.net strk at refractions.net
Sun Apr 2 13:08:34 EDT 2006


On Sun, Apr 02, 2006 at 04:31:15PM +0200, Mateusz Å?oskot wrote:
...
> Another question is if objects we are going to manage with smart
> pointers will always live on the heap.
> If they will, then it's a good practice to make ctor private/protected
> and expose only named ctor e.g. Foo::create()
> Certainly, the create() constructor should return shared_ptr.
> 
> Please, not, there are quite many possibilities, so I'd prefer to
> discuss every such in details than to answer "what to do in general" :-)

Right. Let's discuss this *after* we complete port 
and unit tests.

--strk;



More information about the geos-devel mailing list