Help, Please compile with VS.NET 2003

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;
}
 
C

Carl Daniel [VC++ MVP]

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
 
M

Mark Smith

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top