SST/macro
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sprockit
sprockit
test
assert.h
Go to the documentation of this file.
1
#ifndef ASSERT_H
2
#define ASSERT_H
3
4
class
DefaultCTFailure
{};
5
6
template
<
bool
t,
typename
msg = DefaultCTFailure>
7
struct
FailCompileTime
{
8
enum
{ N = 1 - 2 * int(t) };
9
static
char
A[N];
10
};
11
12
template
<
class
T>
13
class
InvalidContainer
{};
14
15
template
<
class
T>
16
void
invalidContainer
(
const
T& t)
17
{
18
FailCompileTime<true, InvalidContainer<T>
> check;
19
}
20
21
22
23
24
#endif // ASSERT_H
25
InvalidContainer
Definition:
assert.h:13
invalidContainer
void invalidContainer(const T &t)
Definition:
assert.h:16
FailCompileTime
Definition:
assert.h:7
DefaultCTFailure
Definition:
assert.h:4
Generated by
1.8.11