using a personal "double" type
Mike Stump
mrs@apple.com
Wed Nov 19 20:34:00 GMT 2003
On Wednesday, November 19, 2003, at 09:28 AM, FEYEL Frederic. wrote:
> I would like to use my own "double" type, without having to modify a
> source code, for the purpose of automatic differentiation of code.
>
> How would it be possible to tell g++ that each time it sees "double",
> it should use my (assumed)wonderfull class defined in a given file ?
No, or rather, if you really want, -Ddouble=mydouble. Better to just
templatize the code and have the type a parameter. This question is
more appropriate for the gcc-help list.
More information about the Gcc
mailing list