operator<<() needs2be declared(!defined) ]header

(no need to publish on main blog…)

I spent many hours debugging because my operator<<() for my custom class is not picked up at run time. Some default operator<<() was picked up.

It turned out my code is defined in a cpp file but needed in the header file to be picked up.

Would nm or gdb have helped?