?
=?ISO-8859-2?Q?Mihajlo_Cvetanovi=E6?=
Observe this code (VC7.1):
void Test(const char*)
{
}
int main(void)
{
Test( false ); // OK
Test( true ); // error C2664: cannot convert from bool to const char*
}
Shouldn't the first call also produce the compiler error?
void Test(const char*)
{
}
int main(void)
{
Test( false ); // OK
Test( true ); // error C2664: cannot convert from bool to const char*
}
Shouldn't the first call also produce the compiler error?