bug1322.cpp 261 B

12345678910111213141516171819
  1. #include <concepts/concepts.hpp>
  2. struct S
  3. {};
  4. template <typename T>
  5. void foobar(T &&) {}
  6. #if CPP_CXX_CONCEPTS
  7. template <typename T>
  8. requires concepts::totally_ordered<T>
  9. void foobar(T &&) {}
  10. #endif
  11. int main()
  12. {
  13. std::pair<S, int> p;
  14. foobar(p);
  15. }