[Gdal-dev] Assertion in .tab driver

Mateusz Loskot mateusz at loskot.net
Fri Jun 15 09:37:42 EDT 2007


Frank Warmerdam wrote:
> Mateusz Loskot wrote:
>> That's one of the reason why old C functions should be replaced
>> with C++ and safe equivalents (see below).
> 
> Folks,
> 
> Well, I don't really agree with this.  I have found the C++ templated
> versions of stuff like isspace to be implemented somewhat 
> inconsistently between compilers,

Frank,

Do you remember what compilers & versions failed?

> and when things go wrong it is hard to work out why. Just casting an
> argument in problems cases seems fine to me.

OK, but then everytime (in GDAL) a character goes to the isspace() from
<cctype> it should be wrapped with cast, to avoid such problems in future.

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



More information about the Gdal-dev mailing list