Visual Studio Code – How to implement is_comparable trait that will correctly check std::map with non-comparable value_type?
I have a problem while defining a template class containing T. namespace { template <typename T1, typename T2 = T1, typename Test = bool> struct is_comparable : std::integral_constant<bool, false> {}; template <typename T1, typename T2> struct is_comparable<T1, T2, decltype(std::declval<const std::decay_t<T1>>()…