This is the mail archive of the gcc-help@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: 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


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