Компилятор: ambiguous call to overloaded function with the same parameters между bool и char

 
class TestClass
{
public:
   void SetValue(const bool val) {}
   void SetValue(const char val) {}
};

//+------------------------------------------------------------------+
void OnStart()
{
   TestClass c;
   c.SetValue(true);
}

'SetValue' - ambiguous call to overloaded function with the same parameters

 Почему-то не отличает bool от char'a 

 


 
GarF1eld писал(а)  :

'SetValue' - ambiguous call to overloaded function with the same parameters

 Почему-то не отличает bool от char'a 

 

Спасибо, поправил.
Причина обращения: