This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: using a personal "double" type
- From: Mike Stump <mrs at apple dot com>
- To: "FEYEL Frederic." <Frederic dot Feyel at onera dot fr>
- Cc: gcc at gnu dot org
- Date: Wed, 19 Nov 2003 11:38:59 -0800
- Subject: Re: using a personal "double" type
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.