This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]