prog.cpp: In function ‘int main()’:
prog.cpp:30:14: error: no matching function for call to ‘Cat::play(Dog&)’
cat.play(dog);
^
prog.cpp:6:14: note: candidate: static void Cat::play(int)
static void play(int value)
^~~~
prog.cpp:6:14: note: no known conversion for argument 1 from ‘Dog’ to ‘int’
prog.cpp:11:14: note: candidate: static void Cat::play(std::__cxx11::string)
static void play(std::string value)
^~~~
prog.cpp:11:14: note: no known conversion for argument 1 from ‘Dog’ to ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’