--- deliantra/server/include/util.h 2007/08/06 10:54:12 1.54 +++ deliantra/server/include/util.h 2007/09/09 06:25:46 1.56 @@ -347,6 +347,7 @@ refcnt_base () : refcnt (0) { } }; +// to avoid branches with more advanced compilers extern refcnt_base::refcnt_t refcnt_dummy; template @@ -546,8 +547,8 @@ int similar_direction (int a, int b); -// like printf, but returns a std::string -const std::string format (const char *format, ...); +// like sprintf, but returns a "static" buffer +const char *format (const char *format, ...); #endif