File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
DataFormats/Common/interface Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -120,15 +120,9 @@ Ref: A template for a interproduct reference to a member of a product_.
120120#include " DataFormats/Common/interface/RefTraits.h"
121121
122122namespace edm {
123- // Use SFINAE to test for embedded type with name key_compare
124- template <typename , typename = void >
125- struct has_key_compare : std::false_type {};
126- template <typename T>
127- struct has_key_compare <T, std::void_t <typename T::key_compare>> : std::true_type {};
128-
129123 template <typename C, typename K>
130124 bool compare_key (K const & lhs, K const & rhs) {
131- if constexpr (has_key_compare<C>::value ) {
125+ if constexpr (requires { typename C::key_compare; } ) {
132126 using comparison_functor = typename C::key_compare;
133127 return comparison_functor ()(lhs, rhs);
134128 } else {
You can’t perform that action at this time.
0 commit comments