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
NONCLASS_ARROW_RETURN.cpp
Go to the documentation of this file.
1
// checking for operator->()
2
3
25
struct
A
26
{
27
int
a
;
28
};
29
30
template
<
class
T>
31
struct
B
32
{
33
T
*
operator->
()
const
{
34
static
A
a
;
35
return
&
a
;
36
}
37
};
38
39
40
int
foo
()
41
{
42
B<int>
b
;
// <-- testing
43
44
B<A>
ba;
45
46
(void)&
b
;
47
(void)&ba;
48
49
return
ba->
a
;
50
}
T
#define T
Definition
17.names.cpp:163
a
#define a
Definition
17.names.cpp:109
b
#define b
Definition
17.names.cpp:110
foo
int foo()
Definition
NONCLASS_ARROW_RETURN.cpp:40
A
Definition
NAMESPACE.cpp:25
B
Definition
NAMESPACE.cpp:31
A::a
int a
Definition
NONCLASS_ARROW_RETURN.cpp:27
B
Definition
DEFAULT_TEMPLATE_ARGS.cpp:29
B::a
static A a
Definition
EXPLICIT_MEMBER_SPECIALIZATION.cpp:41
B::operator->
T * operator->() const
Definition
NONCLASS_ARROW_RETURN.cpp:33
Generated by
1.9.8