C++ - ostream operator generation - basic fields printout