[geos-devel] Protected Geometry ctors

Mateusz Łoskot mateusz at loskot.net
Sun Apr 30 18:27:36 EDT 2006


strk at refractions.net wrote:
> I've committed a change in HEAD that makes Geometry constructors
> protected. This is to enforce construction trough GeometryFactory,
> which is the only friend class of the whole Geometry hierarchy now.

But, protected ctor won't prevent users from contstructing object using
derieved types directly.

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



More information about the geos-devel mailing list