problems with conversion function

Eljay Love-Jensen eljay@adobe.com
Fri Nov 22 11:39:00 GMT 2002


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



More information about the Gcc-help mailing list