ReactOS
0.4.15-dev-8632-gbc8c7d1
ttei4.cpp
Go to the documentation of this file.
1
/*
2
* It is known that this code not compiled by following compilers:
3
* gcc 2.95.3
4
* gcc 3.3.3
5
* gcc 3.4.1
6
* gcc 4.1.1
7
*
8
* It is known that this code compiled by following compilers:
9
*
10
* MSVC 6
11
* MSVC 8 Beta
12
*/
13
14
/*
15
* Indeed this code is wrong: 1. explicit template specialization
16
* have to appear out-of-class; 2. specialized struct C have to
17
* have function f.
18
*
19
*/
20
21
struct
A
22
{
23
private
:
24
struct
B
25
{
26
template
<
typename
T>
27
static
void
f
(
T
& ) {}
28
29
template
<
bool
V>
30
struct
C
31
{
32
template
<
typename
T>
33
static
void
f
(
T
& ) {}
34
};
35
36
template
<>
37
struct
C
<
true
>
38
{
39
};
40
};
41
};
42
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::f
static void f(T &)
Definition:
ttei4.cpp:33
A::B::f
static void f(T &)
Definition:
ttei4.cpp:27
sdk
lib
3rdparty
stlport
test
compiler
ttei4.cpp
Generated on Mon Sep 9 2024 06:12:45 for ReactOS by
1.9.6