Help, Please compile with VS.NET 2003

  • Thread starter Thread starter Mark Smith
  • Start date Start date
M

Mark Smith

Hello All,
I'm thinking of purchasing VS.NET 2003 Professional,
but first I want to make sure it doesn't have the same
bug as in the 2002 version.

Can somebody please do me a favour and see if this
code compiles successfully with .NET 2003?

Thanks!

Kind Regards,
Mark.

--------------- snip here ----------------

typedef wchar_t char_t;


template <typename T, typename KeyT>
inline T hash( KeyT k, T table_size )
{
return 0;
}

template <typename T>
T hash( const char_t* s, T table_size )
{
return 0;
}


const char_t* s = L"Hello World!";


int main( void )
{
int hv = hash( s, 57 );
return hv;
}
 
Mark said:
Hello All,
I'm thinking of purchasing VS.NET 2003 Professional,
but first I want to make sure it doesn't have the same
bug as in the 2002 version.

It doesn't have the same bugs - it has different bugs.
Can somebody please do me a favour and see if this
code compiles successfully with .NET 2003?

If you use the /Zc:wchar_t compiler option (which makes wchar_t a distinct
built-in type) then it compiles just fine on VC7.1 (aka VS.NET 2003).

-cd
 
Dear Carl,
Great thanks very much! Yes, I use the /Zc:wchar_t compiler option,
so should be plain sailing :)
 
Back
Top