[postgis-devel] Geos Capi OverlayOp, overlayOp question

Mateusz Loskot mateusz at loskot.net
Wed Sep 17 05:03:15 PDT 2008


Obe, Regina wrote:
> I'm still trying to understand the geos codebase and just  C and C++ in
> general, so forgive me if my questions seem naive.
> 
> In the geos_c.cpp (both trunk and 3.0) - starting at line 92
> 
> I see this
> using geos::operation::overlay::OverlayOp;
> using geos::operation::overlay::overlayOp;
> 
> I assume the one in use would be geos::operation::overlay::OverlayOp
> since when I navigate up the source tree, that's the one I see and the
> other is simply ignored?

Regina,

Yes, this is doubled use of using directive. The one in line 89 is
enough, the second one in line 90 should be removed as ignored by
compiler.

> I just want to know what the significance of this is? Seems to deviate
> from the rest of the convention of the code.

Are you asking about the redundant "using" directive or about use of
"using" directive in general?

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org



More information about the postgis-devel mailing list