ReactOS
0.4.16-dev-109-gf4cb10f
ttei5.cpp
Go to the documentation of this file.
1
/*
2
* It is known that this code not compiled by following compilers:
3
* gcc 3.4.1
4
* gcc 4.1.1
5
*
6
* It is known that this code compiled by following compilers:
7
* gcc 2.95.3
8
* gcc 3.3.3
9
*
10
* MSVC 6
11
* MSVC 8 Beta
12
*/
13
14
/*
15
* Indeed this code is wrong: explicit template specialization
16
* have to appear out-of-class.
17
*
18
*/
19
20
struct
A
21
{
22
private
:
23
struct
B
24
{
25
template
<
typename
T>
26
static
void
f
(
T
& ) {}
27
28
template
<
bool
V>
29
struct
C
30
{
31
template
<
typename
T>
32
static
void
f
(
T
& ) {}
33
};
34
35
template
<>
36
struct
C
<
true
>
37
{
38
template
<
typename
T>
39
static
void
f
(
T
& ) {}
40
};
41
};
42
};
43
A
Definition:
ehthrow.cxx:93
B
Definition:
ehthrow.cxx:54
C
Definition:
terminate.cpp:24
T
#define T
Definition:
mbstring.h:31
true
#define true
Definition:
stdbool.h:36
A::B::C< true >::f
static void f(T &)
Definition:
ttei5.cpp:39
A::B::C::f
static void f(T &)
Definition:
ttei5.cpp:32
A::B::f
static void f(T &)
Definition:
ttei5.cpp:26
sdk
lib
3rdparty
stlport
test
compiler
ttei5.cpp
Generated on Wed Oct 9 2024 06:19:05 for ReactOS by
1.9.6