Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
FUNC_PARTIAL_SPEC.cpp
Go to the documentation of this file.
1// checking function template overload
2
3
25template <class T, class U>
26struct A { };
27
28template <class T, class U>
30{
31 return 0;
32}
33
34template <class T, class U>
35int foo (A<T, U>, char)
36{
37 return 1;
38}
39
40template <class U>
41int foo (A<char, U>, char)
42{
43 return 2;
44}
45
46int main ()
47{
50
51 return !(0 == foo (add, 0.0) && 1 == foo (add, 'a') && 2 == foo (acd, 'a'));
52}
#define T
Definition 17.names.cpp:163
int main()
#define foo(buf, s,...)