&gt; A &quot;&#x27;C&#x27; with classes&quot; approach is probably a good one  - but I&#x27;d hate to find some subtle template or Boost bug in mid flight...<p>I&#x27;m not sure how much benefit that would bring, especially since dynamic dispatch is probably not encouraged. As for templates I&#x27;m not much of a c++ guy but wouldn&#x27;t most template errors exist at compile time?