| 73 | |
| 74 | template <typename T> |
| 75 | typename std::enable_if<std::is_base_of<item, T>::value, int>::type less_to_order(const T& a, const T& b) { |
| 76 | const bool a_lt_b = compare(a, b); |
| 77 | const bool b_lt_a = compare(b, a); |
| 78 | return a_lt_b ? |
| 79 | -1 : (!b_lt_a ? 0 : 1); |
| 80 | } |
| 81 | |
| 82 | template <typename T> |
| 83 | typename std::enable_if<!std::is_base_of<item, T>::value, int>::type less_to_order(const T& a, const T& b) { |
no test coverage detected