[Tile-serving] [osm2pgsql] Conversion to C++ (#187)

Paul Norman notifications at github.com
Thu Oct 2 16:39:59 UTC 2014


> And something is to be done with C99 variable-length arrays in stack: 
> https://github.com/openstreetmap/osm2pgsql/blob/master/middle-pgsql.c#L1086
> (make it std::vector? or use new/delete?)

https://github.com/MapQuest/osm2pgsql/blob/cpp_conversion/middle-pgsql.cpp#L771 is the line in the branch under discussion.

The "right" thing to do is probably to make `relations_set` take a vector of members, and do the same changes for all the middles and for osmtypes.cpp.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/187#issuecomment-57658475
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20141002/a65f8b15/attachment.html>


More information about the Tile-serving mailing list