[geos-devel] GeometryFactory - call for explanation

Mateusz Łoskot mateusz at loskot.net
Sun Apr 2 16:38:09 EDT 2006


strk at refractions.net wrote:
> 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.

Yes.

Cheers
-- 
Mateusz Łoskot
http://mateusz.loskot.net



More information about the geos-devel mailing list