In general, my opinion is that the Microservice architecture is not directly bind to a specific language. And of course you can create Microservices in C++.
About should they do it in C++, if they had experience in C++ and did most of their work in it, then i would say they should go with C++.
But is there really a need to completly rewrite their existing system?
Because as Rainer mentioned in the last Q&A Session those rewritten Systems tend to be more worse then the original system.
The issue here is that you call getInfo() at the end of the main function. At this point both Account and whats still there for Account2 is still on the stack. If you wrap all the Creation, copy and movement of the Accounts in an execution block and calling getInfo after that it shows that no memory leak is there:
