Martin Sebor wrote:
Anton Pevtsov wrote:
Hi Martin,
Hey Anton! Good to hear from you! :)
I tried to compile the latest tests version on gcc 4.0.2/SUSE Linux 9.1
and got the "duplicate const" error in lines
containing VA_ARG() macro (see below).
Hmm, strangely, gcc 4.1.0 doesn't complain (and neither does
EDG eccp 3.8). It must be a bug or an unimplemented feature
in 4.0.2.
The proposed patch is attached (just remove the const qualificator).
Thanks. That would do it but I wonder if making VarArgs::pargs_
a non-const pointer and simplifying the VA_ARG() macro might
make it easier to use. Let me know if this patch works for you.
I committed my "improved" version of your patch here:
http://svn.apache.org/viewvc?view=rev&rev=508263
Let me know if you run into any problems with it.
Martin