L
Lighter
Is this a Bug of VS 2005?
We know size_t is not a built-in data type in C++, rather, it is just a
typedef declaration.
However, I found the following code could be normally compiled with VS
2005:
// Note that I don't include any header file in this source file
size_t Test(size_t a)
{
return a;
}
int main()
{
size_t n = Test(8);
return n;
}
Why? Is this really a bug of VS 2005?
We know size_t is not a built-in data type in C++, rather, it is just a
typedef declaration.
However, I found the following code could be normally compiled with VS
2005:
// Note that I don't include any header file in this source file
size_t Test(size_t a)
{
return a;
}
int main()
{
size_t n = Test(8);
return n;
}
Why? Is this really a bug of VS 2005?