Hello,
I just came across this "feature" in c++:
So obviously moo only should be taking a Blah class, but somehow it can also take a char* and a string? What is this feature called? I'm just making sure this is standard c++..Code:class Blah{ public: Blah() {}; Blah(const string& thestr) {}; Blah(const char* mwah) {} }; void moo(const Blah& theblah){ // do nothing } int main(){ moo(Blah()); moo("haha"); moo(string("haha")); }