--- gigedit/trunk/src/gigedit/global.h 2013/04/10 09:11:37 2441 +++ gigedit/trunk/src/gigedit/global.h 2013/04/14 07:29:59 2442 @@ -24,6 +24,8 @@ # include #endif +#include + #if HAVE_GETTEXT # include # define _(String) gettext(String) @@ -37,4 +39,10 @@ # define VERSION VER_STRING // VER_STRING defined in libgig_private.h #endif // WIN32 +template inline std::string ToString(T o) { + std::stringstream ss; + ss << o; + return ss.str(); +} + #endif // GIGEDIT_GLOBAL_H