Themaister fd3bdb7c23 Revert "Some small optimizations (seem to work)."
This reverts commit 6e442f99ce38f724ed8915d7dbe98bfeba5d0a67.
2011-04-30 12:14:55 +02:00

18 lines
300 B
C++

#ifndef NALL_ALGORITHM_HPP
#define NALL_ALGORITHM_HPP
#undef min
#undef max
namespace nall {
template<typename T, typename U> T min(const T &t, const U &u) {
return t < u ? t : u;
}
template<typename T, typename U> T max(const T &t, const U &u) {
return t > u ? t : u;
}
}
#endif