This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problems with conversion function
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Oliver Kullmann <O dot Kullmann at Swansea dot ac dot uk>, gcc-help at gcc dot gnu dot org
- Date: Fri, 22 Nov 2002 07:41:41 -0600
- Subject: Re: problems with conversion function
Hi Oliver,
I assume that C is a std::string, yes?
Check your program for #define polluting / corrupting the source code. You
can test it before your routine via:
#define C C
#define PidType PidType
#define Pid Pid
If any of these tokens where previously #defined to something else, this
trick will cause the compiler to print a warning. Which may explain why
you were unable to get this to happen in your toy program.
I hate preprocessor macro substitution.
--Eljay