Strange overload behavior for << operator

if have :
myclass& operator << (std::string data);
myclass& operator << (bool data);

Ok I dont know what can be happen, but
myclass<<"hello"; is processed like a bool ????
Any idea? Thanks

And... Thank you very much to everybody that are helping me !
It's a pointer to char, pointers can be implicitly casted to bools.
Add an oerload of << for const char* and it should solve your problem
Topic archived. No new replies allowed.