CVS error
Petter Reinholdtsen
pere at HUNGRY.COM
Tue Feb 7 11:34:00 EST 2006
[Daniel Morissette]
> This is a problem that we had encountered a while ago with all the other
> instances of "template" in C structs, when used in a C++ file since
> template is a reserved keyword in C++.
>
> The solution that we had implemented everywhere else and that I applied
> to mapows.h is to use _template in C++:
>
> #ifndef __cplusplus
> char *template;
> #else
> char *_template;
> #endif
Why not rename it to _template in C, and thus avoid having to document
different name for different languages? Perhaps include a '#define
template _template' for backward compatibility with existing C
programs, and announce that the define is going away in the future.
More information about the mapserver-dev
mailing list