title: Elegant way for C++ code generation
body: <p>I am currently working on a database related project in which I generate a lot of C++ code. This code is compiled then and loaded as a dynamic library. I use this techniques to build efficient code for the database schema and queries.</p>
  
  <p>Currently, I am using simple file write to generate the code (what was okay for the proof-of-concept implementation). Now, I am searching for a more elegant but comparable flexible solution to generate C++ code.</p>
  
  <p>I searched quite a lot but all the solutions I found so far are rather complex/extensive, not efficient enough, or not flexible enough.</p>
  
  <p>What libraries are you using in your C++ projects to generate code?</p>
  
  <p>Best,
  Moritz</p>