In case you don't have boost and need to convert a POD to string: template inline std::string makeString(const T& val) { std::ostringstream os; os<