File: bug1322.cpp

package info (click to toggle)
range-v3 0.12.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,620 kB
  • sloc: cpp: 76,839; xml: 226; sh: 89; python: 34; makefile: 16; perl: 15
file content (19 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <concepts/concepts.hpp>

struct S
{};

template <typename T>
void foobar(T &&) {}

#if CPP_CXX_CONCEPTS
template <typename T>
    requires concepts::totally_ordered<T>
void foobar(T &&) {}
#endif

int main()
{
    std::pair<S, int> p;
    foobar(p);
}