0

I know in ruby language there is a method called object.inspect can print all member's in object without override toString(Java) <<(in cpp),it's very usefull for debug print.

I want to know How to implment these function in c++ or is there has any library to do this? I'm newer to learn c++, hate to write too much templates for many diffent complex classes!

Thanks for any advise!

Community
  • 1
  • 1
Albert.Qing
  • 4,220
  • 4
  • 37
  • 49

0 Answers0