I am reluctant to pull this in since creating ostringstream locks a global mutex and it relies on the system locale. In Util/StringUtil.h is a function named intToString(..) which uses the boost karma generator library. It is a better choice as it does not create a lock.