[geos-devel] GeometryFactory - call for explanation

strk at refractions.net strk at refractions.net
Fri Mar 31 05:36:39 EST 2006


On Fri, Mar 31, 2006 at 10:31:33AM +0200, Mateusz Å?oskot wrote:
> strk at refractions.net wrote:
> > I'm in favour of this, but it would be an immutable
> > instance, using a FLOATING PrecisionModel.
> 
> Do you mean you want to provide single global common factory?

Yes, but not preventing the construction of new ones.
BTW, in case we use shared_ptr<> should we prevent
direct construction by using the 'named construction idiom' ?

> > There is already one in Geometry::INTERNAL_FACTORY, I
> > would change it's access method to GeometryFactory::defaultInstance()
> > and ensure constness.
> 
> and I'd let defaultInstance() to return shared_ptr.

Agreed.
--strk;



More information about the geos-devel mailing list