Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
OVERLOAD_OF_TEMPLATE_FUNCTION.cpp
Go to the documentation of this file.
1// checking complicated partial ordering
2
3
26template <class T, class U>
27class S { };
28
29template<class T, class U>
31{
32 return s;
33}
34
35template<class T, class U>
37{
38 return s;
39}
40
41template <class U>
43{
44 return s;
45}
46
47template <class U>
49{
50 return s;
51}
52
53void foo ()
54{
55 S<char, int> sci;
56 S<int, int> sii;
57
58 sci << 'a';
59 sii << 1;
60}
#define T
Definition 17.names.cpp:163
#define s
S< T, U > & operator<<(S< T, U > &s, T)