--- deliantra/server/include/util.h 2008/01/22 15:53:01 1.60 +++ deliantra/server/include/util.h 2008/03/24 20:39:34 1.64 @@ -92,6 +92,9 @@ template static inline void swap (T& a, U& b) { T t=a; a=(T)b; b=(U)t; } +template static inline T min (T a, U b, V c) { return min (a, min (b, c)); } +template static inline T max (T a, U b, V c) { return max (a, max (b, c)); } + template static inline T lerp (T val, T min_in, T max_in, T min_out, T max_out) @@ -268,7 +271,7 @@ }; slice_allocator () throw () { } - slice_allocator (const slice_allocator &o) throw () { } + slice_allocator (const slice_allocator &) throw () { } template slice_allocator (const slice_allocator &) throw () { } @@ -287,7 +290,7 @@ sfree (p, n); } - size_type max_size ()const throw () + size_type max_size () const throw () { return size_t (-1) / sizeof (Tp); }