The problem is that the global template function print_class_name is declared to return std::string
but does not return anything.
THE real problem is that g++ does not issue even a warning when compiling the above
code via "g++ -o test main.cc". To get a warning one must call "g++ -Wall -o test main.cc".
It seems to me that I have reported this bug too soon, for which I apologise (it will not happen again).
Bug resolved.
The problem is that the global template function print_class_name is declared to return std::string
but does not return anything.
THE real problem is that g++ does not issue even a warning when compiling the above
code via "g++ -o test main.cc". To get a warning one must call "g++ -Wall -o test main.cc".
It seems to me that I have reported this bug too soon, for which I apologise (it will not happen again).
Thanks