Changeset View
Changeset View
Standalone View
Standalone View
clang/test/CXX/class/class.compare/class.compare.default/p4.cpp
Context not available. | |||||
// Note, substitution here results in the second parameter of 'operator==' | // Note, substitution here results in the second parameter of 'operator==' | ||||
// referring to the first parameter of 'operator==', not to the first parameter | // referring to the first parameter of 'operator==', not to the first parameter | ||||
// of 'operator<=>'. | // of 'operator<=>'. | ||||
// FIXME: Find a case where this matters (attribute enable_if?). | // FIXME: Find a case where this matters (attribute enable_if? ). | ||||
struct K { | struct K { | ||||
friend std::strong_ordering operator<=>(const K &k, decltype(k)) = default; | friend std::strong_ordering operator<=>(const K &k, decltype(k)) = default; | ||||
}; | }; | ||||
Context not available. |