[libpc] putenv

Michael P. Gerlek mpg at flaxen.com
Wed Mar 23 10:33:49 EDT 2011


Oh, *that* was what the weird code was about... I shoulda left it alone.

I like pushing weirdo or OS-dependent stuff like this to one place, like
Utils.

Maybe you could do a static class in Utils.cpp to hold the strings?

-mpg


> -----Original Message-----
> From: libpc-bounces at lists.osgeo.org [mailto:libpc-bounces at lists.osgeo.org]
> On Behalf Of Howard Butler
> Sent: Wednesday, March 23, 2011 6:41 AM
> To: libpc at lists.osgeo.org
> Subject: [libpc] putenv
> 
> putenv is not "const char*" on unix.
> 
> What should we do?  Casting it to non-const is probably bad in this case
> because the user needs to keep it alive.
> 
> Howard_______________________________________________
> libpc mailing list
> libpc at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/libpc




More information about the pdal mailing list