Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
etc
config
src
TEMPLATE_DEFAULT_ARG_CONVERSION.cpp
Go to the documentation of this file.
1
// checking for conversion in template default arguments
2
3
26
template
<
class
T>
27
struct
A
{ };
28
29
template
<
class
T>
30
void
foo
(
T
t
=
T
(
'x'
))
31
{
32
}
33
34
template
<
class
T>
35
A<T>
bar
(
T
t
=
T
(
'y'
))
36
{
37
return
A<T>
();
38
}
39
40
void
baz
()
41
{
42
foo<int>
();
43
bar<int>();
44
}
T
#define T
Definition
17.names.cpp:163
t
#define t
Definition
17.names.cpp:136
bar
int bar()
Definition
collapse_static_locals.lib.cpp:36
foo< int >
int foo< int >()
Definition
SPECIALIZATION_ON_RETURN_TYPE.cpp:30
baz
void baz()
Definition
TEMPLATE_DEFAULT_ARG_CONVERSION.cpp:40
foo
#define foo(buf, s,...)
Definition
VA_LIST_FUNC_MACRO.cpp:28
A
Definition
NAMESPACE.cpp:25
A
Definition
DEFAULT_TEMPLATE_ARGS.cpp:26
Generated by
1.9.8