Careless use of templates can cause bloat. One way to avoid that bloat is to have a thin typesafe template that wraps non-typesafe non-template code. To do this, the wrapper nee
Careless use of templates CAN cause bloat. But you're totally missing the point here.
You just haven't thought this through properly at all. The advantages templates offer far outweigh a few kb in executable size.
It's also worth noting that the code works as expected on Visual Studio 2010.