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
STATIC_ASSERT.cpp
Go to the documentation of this file.
1
// checking for static_assert
2
3
25
template
<
int
_N>
26
struct
S
27
{
28
static_assert
(0 < _N,
"fail"
);
29
};
30
31
template
<
int
_N>
32
void
f
()
33
{
34
static_assert
(0 < _N,
"fail"
);
35
}
36
37
static_assert
(1,
"pass"
);
38
39
void
g
()
40
{
41
S<1>
s1
;
42
f<1>();
43
static_assert
(1,
"pass"
);
44
}
s1
#define s1
Definition
17.names.cpp:242
f
void f()
Definition
STATIC_ASSERT.cpp:32
g
void g()
Definition
STATIC_ASSERT.cpp:39
S
Definition
COLLAPSE_TEMPLATE_STATICS.cpp:40
Generated by
1.9.8