Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
STATIC_ASSERT.cpp
Go to the documentation of this file.
1// checking for static_assert
2
3
25template <int _N>
26struct S
27{
28 static_assert (0 < _N, "fail");
29};
30
31template <int _N>
32void f ()
33{
34 static_assert (0 < _N, "fail");
35}
36
37static_assert (1, "pass");
38
39void g ()
40{
41 S<1> s1;
42 f<1>();
43 static_assert (1, "pass");
44}
#define s1
Definition 17.names.cpp:242
void f()
void g()