[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Implicit conversion from const char* to bool
From: |
Michał Błaszak |
Subject: |
Implicit conversion from const char* to bool |
Date: |
Tue, 27 Sep 2005 13:49:20 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720) |
Hi,
g++: gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)
The hollowing can be compiled with no errors and can be launched.
#include <stdio.h>
void func(bool a)
{
printf("func\n");
}
int main()
{
bool x = "qqq";
func("aaa");
}
Best regards,
Michał Błaszak
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Implicit conversion from const char* to bool,
Michał Błaszak <=