#ifndef TMWA_COMPAT_ALG_HPP #define TMWA_COMPAT_ALG_HPP # include "../sanity.hpp" # include template typename std::common_type::type min(A a, B b) { return a < b ? a : b; } template typename std::common_type::type max(A a, B b) { return b < a ? a : b; } #endif // TMWA_COMPAT_ALG_HPP