Opened 14 years ago

Closed 3 years ago

#320 closed task (duplicate)

factory for std::vector

Reported by: 12345678 Owned by: geos-devel@…
Priority: major Milestone: GEOS Fund Me
Component: Default Version: 3.2.0
Severity: Unassigned Keywords:


I am using in geos DLL. create collections, for example: createMultiPolygon, demand a std::vector<Geometry*> but there is no creator factory for create the std::vector !

Change History (5)

comment:1 by 12345678, 14 years ago


comment:2 by mloskot, 14 years ago

I confirm this is potentially an issue in cases where a factory functions take ownership of passed collection. For example:

class GEOS_DLL GeometryFactory {
MultiLineString* createMultiLineString(std::vector<Geometry *> *newLines) const;

If client will allocate the newLines in EXE/DLL module and pass it to GEOS DLL module which later will deallocate it, then memory is allocated/deallocated across module boundaries what may lead to problems.

A factory for those containers would be useful indeed.

comment:3 by strk, 12 years ago

Milestone: GEOS Future

comment:4 by robe, 5 years ago

Milestone: GEOS FutureGEOS Fund Me

Milestone renamed

comment:5 by pramsey, 3 years ago

Resolution: duplicate
Status: newclosed

See #1050

Note: See TracTickets for help on using tickets.