I have this c++ class.
class Dinosaur {
    public:
        Dinosaur();
        ...
    private:
        char* name_str_pointer;
        ...
}
I'm trying use implicit conversion from Dinosaur to char* so this line works comparing "velociraptor" with name_str_pointer.
Dinosaur d();
strcmp(d, "velociraptor");
Which returns
error: cannot convert ‘const Dinosaur’ to ‘const char*’ for argument ‘1’ to ‘int strcmp(const char*, const char*)’
How can I achieve that?
 
    