tor 2009-09-17 klockan 11:15 +0200 skrev Guido Serassio:

> It fails:
> 
> vs_string.cc
> c:\work\vc_string\vs_string.cc(1) : error C2371: 'size_t' :
> redefinition; different basic types

Gah, should have been unsigned long.. but interesting that VS apparently
has size_t built-in. It was declared in the preprocessed source as

typedef __w64 unsigned int   size_t;

>         c:\work\vc_string\vs_string.cc : see declaration of 'size_t'
> c:\work\vc_string\vs_string.cc(34) : error C2057: expected constant
> expression

Good. so it seems the test case worked.

now replace std with testcase and try again, both in namespace and the
failing assignment just to make sure it's not tripping over something
else built-in.

> Do you need the preprocessed source ?

No, that was preprocessed already with no includes or other preprocessor
directives.

Regards
Henrik

Reply via email to