From: Anthony Williams (anthony.williamsNOSPAM_at_[hidden])
Date: 2003-10-30 10:27:27


"vc" <vcotirlea1_at_[hidden]> writes:
> I'm using VC++ 7.1 on Win2k and I have build the regex and thread libs
> using the IDE which means that /Zc:wchar_t is not by default enabled. Are
> you
> saying that it should be? Is this true for both libs or just regex? I mean
> I'm having these
> settings for some time now and everything worked just fine ... and I'm not
> sure if
> I should really add the /Zc:wchar_t to these libs.

My experience of using VC7.1 is that having wchar_t as a typedef for unsigned
short (which is the default) causes problems with overloading. e.g.

void doStuff(char);
void doStuff(wchar_t);
void doStuff(int);

unsigned short x;
doStuff(x); // picks wchar_t overload if /Zc:wchar_t is not enabled
            // int overload if it is.

So therefore you really want /Zc:wchar_t enabled for all projects.

Anthony

-- 
Anthony Williams
Senior Software Engineer, Beran Instruments Ltd.
Remove NOSPAM when replying, for timely response.