compile-time sprintf/catf/countf template; add the impls for your favourite types and replace your idiotic stringstream with it...
license