[gdal-dev] gdal 1.5.1 fixes for DODS and OGR/DODS drivers if you plan to upgrade to libdap 3.8.0

Mateusz Loskot mateusz at loskot.net
Tue Apr 22 19:23:57 EDT 2008


Rob Cermak wrote:
> Small patch for ogr/ogrsf_frmts/dods/ogr_dods.h:
> 
> --- ogr_dods.h.orig     2008-04-22 14:34:10.000000000 -0800
> +++ ogr_dods.h  2008-04-22 14:34:24.000000000 -0800
> @@ -68,6 +68,8 @@
>  #include <Error.h>
>  #include <escaping.h>
> 
> +using namespace libdap ;
> +
>  /************************************************************************/
>  /*                           OGRDODSFieldDefn                           */
>  /************************************************************************/

As a word of review, I'd suggest to not to open any namespace in header
files but use fully qualified names instead. It keep global
scope less polluted.

Greetings
-- 
Mateusz Loskot
http://mateusz.loskot.net


More information about the gdal-dev mailing list