Boost Karma is one of the most elaborate ways to build strings in C++. Perhaps too much?
In this video you'll see an introduction to Boost Karma and its generators, so that you know what lies in there!
Boost Karma official documentation: http://www.boost.org/doc/libs/1_66_0/...
Code:
1st example: https://gist.github.com/joboccara/a6d...
2nd example: https://gist.github.com/joboccara/b4f...
3rd example: https://gist.github.com/joboccara/48a...