Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
TEMPLATE_DEFAULT_ARG_CONVERSION.cpp
Go to the documentation of this file.
1// checking for conversion in template default arguments
2
3
26template <class T>
27struct A { };
28
29template <class T>
30void foo (T t = T ('x'))
31{
32}
33
34template <class T>
35A<T> bar (T t = T ('y'))
36{
37 return A<T>();
38}
39
40void baz ()
41{
42 foo<int>();
43 bar<int>();
44}
#define T
Definition 17.names.cpp:163
#define t
Definition 17.names.cpp:136
#define foo(buf, s,...)