[GCC-XML]Default values
Nicodemus
nicodemus at globalite.com.br
Mon Mar 10 14:05:46 EST 2003
Hi all!
I'm having some troubles with default values.
Consider this function:
typedef geom::range<double> drange;
void foo(double x=0.45, drange r = drange(0.5, 4.5));
The dafault values that GCCXML outputs for the first parameter is something
like:
default="0x00000000000000000080ff3f0000000000000000"
This seems to be the internal representation of a float used by gcc, but for
the user is almost useless. I suppose the user could extract the real value
of the double from it, but consider the default value for the second
parameter:
default="drange((&0x000000d0ccccccccccccfb3f0000000000000000),(&0x00
0000000000000000a002400000000000000000))"
The situation here is even worse, because the user would have to parse the
contents of the string to get the desired values.
Is possible to improve this part of the output of GCCXML? Any suggestions on
how to extract the correct values would be welcomed too.
Thanks!
Nicodemus.
More information about the gccxml
mailing list